MCPcopy Create free account

hub / github.com/dundee/gdu / functions

Functions1,255 in github.com/dundee/gdu

↓ 7 callersMethodshowFile
()
tui/show_file.go:22
↓ 7 callersMethodshowTypeFilterInput
()
tui/filter.go:78
↓ 6 callersMethodHasInode
HasInode returns true if a file with the given inode already exists in the database
pkg/analyze/sqlite.go:203
↓ 6 callersMethodIsEmpty
IsEmpty returns true if the TimeBound has no filter criteria
pkg/timefilter/timefilter.go:18
↓ 6 callersMethodLen
()
pkg/device/dev.go:40
↓ 6 callersMethodLess
(i, j int)
pkg/fs/file.go:101
↓ 6 callersFunctionNewProgressBar
NewProgressBar returns a new ProgressBar with default settings.
tui/progressbar.go:24
↓ 6 callersMethodRemoveFile
(Item)
pkg/fs/file.go:50
↓ 6 callersMethodSetAnalyzer
(analyzer common.Analyzer)
cmd/gdu/app/app.go:44
↓ 6 callersFunctionShortenPath
ShortenPath removes the last but one path components to fit into maxLen
pkg/path/path.go:6
↓ 6 callersMethodShouldDirBeIgnored
ShouldDirBeIgnored returns true if given path should be ignored
internal/common/ignore.go:109
↓ 6 callersMethodconfirmDeletionSelected
(shouldEmpty bool)
tui/tui.go:516
↓ 6 callersFunctionensureZipDirExists
ensureZipDirExists ensures all directories in the specified path exist
pkg/analyze/zipdir.go:135
↓ 6 callersFunctionfindCollapsedParent
findCollapsedParent checks if the current directory is the deepest directory in a collapsed path, and returns the appropriate parent to navigate to
tui/utils.go:143
↓ 6 callersMethodformatCount
(count int64)
tui/format.go:221
↓ 6 callersFunctiongetScanner
(f io.ReadSeeker)
tui/show_file.go:115
↓ 6 callersMethodshowHelp
()
tui/show.go:340
↓ 5 callersFunctionCreateIgnorePattern
CreateIgnorePattern creates one pattern from all path patterns
internal/common/ignore.go:16
↓ 5 callersMethodGetChildren
GetChildren returns all children of a given parent ID
pkg/analyze/sqlite.go:396
↓ 5 callersMethodGetDirForPath
GetDirForPath returns Dir for given path
pkg/analyze/storage.go:119
↓ 5 callersMethodGetSize
GetSize returns the apparent size
pkg/analyze/sqlite.go:550
↓ 5 callersMethodHasData
HasData returns true if the database contains analysis data
pkg/analyze/sqlite.go:190
↓ 5 callersMethodIndexOf
IndexOf searches File in Files and returns its index
pkg/fs/file.go:62
↓ 5 callersMethodIsOpen
IsOpen returns true if badger DB is open
pkg/analyze/storage.go:51
↓ 5 callersMethodSetIgnoreDirPaths
SetIgnoreDirPaths sets paths to ignore
internal/common/ignore.go:40
↓ 5 callersMethodSetIgnoreDirPatterns
SetIgnoreDirPatterns sets regular patterns of dirs to ignore
internal/common/ignore.go:58
↓ 5 callersMethodSetIgnoreFromFile
SetIgnoreFromFile sets regular patterns of dirs to ignore
internal/common/ignore.go:66
↓ 5 callersMethodSetMetadata
SetMetadata stores a metadata key-value pair
pkg/analyze/sqlite.go:482
↓ 5 callersMethodSetNoSpawnShell
SetNoSpawnShell disables shell spawning
tui/tui.go:342
↓ 5 callersMethodSetNoViewFile
()
tui/tui.go:346
↓ 5 callersMethodShouldRunInNonInteractiveMode
ShouldRunInNonInteractiveMode checks if the application should run in non-interactive mode based on the flags set.
cmd/gdu/app/app.go:110
↓ 5 callersFunctionSizeFromKey
SizeFromKey returns size from git-annex key.
pkg/annex/annex.go:12
↓ 5 callersMethodanalyzeParentOfTopDir
()
tui/keys.go:373
↓ 5 callersFunctioncreateTestZipFile
createTestZipFile creates a test zip file
pkg/analyze/zipdir_test.go:145
↓ 5 callersFunctionensureTarDirExists
ensureTarDirExists ensures all directories in the specified path exist within dirMap
pkg/analyze/tardir.go:214
↓ 5 callersMethodformatCount
(count int64)
stdout/stdout.go:524
↓ 5 callersFunctionincludeByTimeBound
includeByTimeBound determines if a file should be included based on its mtime and the time bound
pkg/timefilter/timefilter.go:134
↓ 5 callersMethodisInArchive
()
tui/actions.go:425
↓ 5 callersFunctionparseTimeValue
parseTimeValue parses a time value into either a timestamp instant or a date-only value
pkg/timefilter/timefilter.go:230
↓ 5 callersFunctionreadMountsFile
(file io.Reader)
pkg/device/dev_linux.go:51
↓ 5 callersFunctionsortFiles
sortFiles sorts files in place according to sortBy and order
pkg/analyze/file.go:273
↓ 5 callersMethodupdateProgress
(analyzer common.Analyzer, doneChan common.SignalGroup)
tui/progress.go:12
↓ 4 callersFunctionFormatNumber
FormatNumber returns number as a string with thousands separator
internal/common/ui.go:72
↓ 4 callersMethodGetMetadata
GetMetadata retrieves a metadata value by key
pkg/analyze/sqlite.go:494
↓ 4 callersMethodGetMtime
GetMtime returns the modification time
pkg/analyze/sqlite.go:575
↓ 4 callersMethodGetMultiLinkedInode
()
pkg/fs/file.go:43
↓ 4 callersMethodGetUsage
GetUsage returns the disk usage
pkg/analyze/sqlite.go:568
↓ 4 callersMethodIsEmpty
IsEmpty returns true if the TimeFilter has no filter criteria
pkg/timefilter/timefilter.go:97
↓ 4 callersFunctionItemFromDir
ItemFromDir removes item from dir
pkg/remove/remove.go:11
↓ 4 callersFunctionItemFromDirParallel
ItemFromDirParallel removes item from dir
pkg/remove/parallel.go:14
↓ 4 callersFunctionNewStorage
NewStorage returns new instance of badger storage
pkg/analyze/storage.go:36
↓ 4 callersMethodSetDeleteInParallel
SetDeleteInParallel sets the flag to delete files in parallel
tui/tui.go:296
↓ 4 callersMethodSetFlag
(flag rune)
pkg/analyze/top_dir.go:34
↓ 4 callersMethodSetIgnoreHidden
SetIgnoreHidden sets flags if hidden dirs should be ignored
internal/common/ignore.go:103
↓ 4 callersMethodSetInputCapture
(capture func(event *tcell.EventKey) *tcell.EventKey)
internal/common/app.go:17
↓ 4 callersMethodSetNoDelete
SetNoDelete disables all write operations
tui/tui.go:337
↓ 4 callersMethodSetTimeFilter
(timeFilter common.TimeFilter)
cmd/gdu/app/app.go:45
↓ 4 callersMethodStoreDir
StoreDir saves item info into badger DB
pkg/analyze/storage.go:81
↓ 4 callersMethodUpdateStats
(linkedItems fs.HardLinkedItems)
pkg/analyze/top_dir.go:80
↓ 4 callersMethodUseOldSizeBar
UseOldSizeBar uses the old size bar (# chars) instead of the new one (unicode block elements)
tui/tui.go:285
↓ 4 callersFunctioncreateDirWithExtensions
()
tui/filter_test.go:149
↓ 4 callersFunctioncreateTestTarFile
(t *testing.T, path string)
pkg/analyze/tardir_test.go:49
↓ 4 callersMethoddeviceItemSelected
(row, column int)
tui/tui.go:451
↓ 4 callersMethodhandleLeft
()
tui/keys.go:355
↓ 4 callersFunctionisTarFile
isTarFile checks if a file is a tar archive (tar, tar.gz, tgz, tar.bz2, tbz2, tar.xz, txz)
pkg/analyze/tardir.go:69
↓ 4 callersMethodrebuildFooter
()
tui/filter.go:11
↓ 4 callersFunctionsetDirPlatformSpecificAttrs
(dir *Dir, path string)
pkg/analyze/dir_unix.go:34
↓ 4 callersFunctionsetPlatformSpecificAttrs
(file *File, f os.FileInfo)
pkg/analyze/dir_unix.go:23
↓ 4 callersMethodshowErrFromGo
(msg string, err error)
tui/show.go:334
↓ 4 callersMethodshowFilterInput
()
tui/filter.go:30
↓ 4 callersFunctionwriteTarEntries
--------------------------------------------------------------------------- Helpers to create test archives ------------------------------------------
pkg/analyze/tardir_test.go:26
↓ 3 callersMethodAdd
Add increments value
pkg/analyze/wait.go:20
↓ 3 callersMethodAddUsage
(size, usage, itemCount int64)
pkg/analyze/top_dir.go:24
↓ 3 callersFunctionAnnexedFileInfo
AnnexedFileInfo returns a new FileInfo with size from git-annex key.
pkg/annex/annex.go:38
↓ 3 callersMethodBeginBulkInsert
BeginBulkInsert starts a transaction and prepares statements for bulk insertion
pkg/analyze/sqlite.go:114
↓ 3 callersFunctionCollectTopFiles
(dir fs.Item, count int)
pkg/analyze/top.go:33
↓ 3 callersFunctionCreateStableOrderAnalyzer
CreateStableOrderAnalyzer returns parallel Analyzer which keeps stable order of files
pkg/analyze/parallel_stable.go:18
↓ 3 callersMethodEndBulkInsert
EndBulkInsert commits the transaction and closes prepared statements
pkg/analyze/sqlite.go:165
↓ 3 callersMethodFindByName
FindByName searches name in Files and returns its index
pkg/fs/file.go:72
↓ 3 callersMethodGetFilesLocked
(SortBy, SortOrder)
pkg/fs/file.go:49
↓ 3 callersMethodGetFlag
GetFlag returns the flag of the item
pkg/analyze/sqlite.go:540
↓ 3 callersMethodGetItemStats
(linkedItems HardLinkedItems)
pkg/fs/file.go:45
↓ 3 callersFunctionGetNestedMountpointsPaths
GetNestedMountpointsPaths returns paths of nested mount points
pkg/device/dev.go:47
↓ 3 callersMethodGetPath
GetPath returns the virtual path for zip directory
pkg/analyze/zipdir.go:60
↓ 3 callersMethodGetPath
GetPath returns the virtual path for tar directory
pkg/analyze/tardir.go:61
↓ 3 callersMethodIncludeByTimeFilter
IncludeByTimeFilter determines if a file should be included based on the complete time filter
pkg/timefilter/timefilter.go:78
↓ 3 callersMethodIsHiddenDir
IsHiddenDir returns if the dir name begins with dot
internal/common/ignore.go:127
↓ 3 callersFunctionMockedPathChecker
MockedPathChecker is mocked os.Stat, returns (nil, nil)
internal/testdir/test_dir.go:28
↓ 3 callersFunctionNewTimeFilter
NewTimeFilter creates a new TimeFilter with the given parameters
pkg/timefilter/timefilter.go:29
↓ 3 callersFunctionNewTopList
NewTopList creates new TopList
pkg/analyze/top.go:17
↓ 3 callersMethodRun
Run starts gdu main logic nolint:gocyclo,funlen // App function is a suite of if statements
cmd/gdu/app/app.go:200
↓ 3 callersMethodSetBeforeDrawFunc
(func(screen tcell.Screen) bool)
internal/common/app.go:22
↓ 3 callersMethodSetChangeCwdFn
SetChangeCwdFn sets function that can be used to change current working dir during dir browsing
tui/tui.go:291
↓ 3 callersMethodSetCollapsePath
(value bool)
cmd/gdu/app/app.go:47
↓ 3 callersMethodSetIgnoreTypes
SetIgnoreTypes sets file types to ignore
internal/common/ignore.go:91
↓ 3 callersMethodSetIncludeTypes
SetIncludeTypes sets file types to include (whitelist)
internal/common/ignore.go:97
↓ 3 callersMethodSetShowDiskProgressBar
SetShowDiskProgressBar sets whether to show a progress bar when scanning a whole disk
tui/tui.go:366
↓ 3 callersMethodSetShowItemCount
SetShowItemCount sets the flag to show number of items in directory
tui/tui.go:327
↓ 3 callersMethodShouldDirBeIgnoredUsingPattern
ShouldDirBeIgnoredUsingPattern returns true if given path should be ignored
internal/common/ignore.go:118
↓ 3 callersMethodSuspend
(f func())
internal/common/app.go:14
← previousnext →101–200 of 1,255, ranked by callers