Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dundee/gdu
/ functions
Functions
1,255 in github.com/dundee/gdu
⨍
Functions
1,255
◇
Types & classes
80
↓ 7 callers
Method
showFile
()
tui/show_file.go:22
↓ 7 callers
Method
showTypeFilterInput
()
tui/filter.go:78
↓ 6 callers
Method
HasInode
HasInode returns true if a file with the given inode already exists in the database
pkg/analyze/sqlite.go:203
↓ 6 callers
Method
IsEmpty
IsEmpty returns true if the TimeBound has no filter criteria
pkg/timefilter/timefilter.go:18
↓ 6 callers
Method
Len
()
pkg/device/dev.go:40
↓ 6 callers
Method
Less
(i, j int)
pkg/fs/file.go:101
↓ 6 callers
Function
NewProgressBar
NewProgressBar returns a new ProgressBar with default settings.
tui/progressbar.go:24
↓ 6 callers
Method
RemoveFile
(Item)
pkg/fs/file.go:50
↓ 6 callers
Method
SetAnalyzer
(analyzer common.Analyzer)
cmd/gdu/app/app.go:44
↓ 6 callers
Function
ShortenPath
ShortenPath removes the last but one path components to fit into maxLen
pkg/path/path.go:6
↓ 6 callers
Method
ShouldDirBeIgnored
ShouldDirBeIgnored returns true if given path should be ignored
internal/common/ignore.go:109
↓ 6 callers
Method
confirmDeletionSelected
(shouldEmpty bool)
tui/tui.go:516
↓ 6 callers
Function
ensureZipDirExists
ensureZipDirExists ensures all directories in the specified path exist
pkg/analyze/zipdir.go:135
↓ 6 callers
Function
findCollapsedParent
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 callers
Method
formatCount
(count int64)
tui/format.go:221
↓ 6 callers
Function
getScanner
(f io.ReadSeeker)
tui/show_file.go:115
↓ 6 callers
Method
showHelp
()
tui/show.go:340
↓ 5 callers
Function
CreateIgnorePattern
CreateIgnorePattern creates one pattern from all path patterns
internal/common/ignore.go:16
↓ 5 callers
Method
GetChildren
GetChildren returns all children of a given parent ID
pkg/analyze/sqlite.go:396
↓ 5 callers
Method
GetDirForPath
GetDirForPath returns Dir for given path
pkg/analyze/storage.go:119
↓ 5 callers
Method
GetSize
GetSize returns the apparent size
pkg/analyze/sqlite.go:550
↓ 5 callers
Method
HasData
HasData returns true if the database contains analysis data
pkg/analyze/sqlite.go:190
↓ 5 callers
Method
IndexOf
IndexOf searches File in Files and returns its index
pkg/fs/file.go:62
↓ 5 callers
Method
IsOpen
IsOpen returns true if badger DB is open
pkg/analyze/storage.go:51
↓ 5 callers
Method
SetIgnoreDirPaths
SetIgnoreDirPaths sets paths to ignore
internal/common/ignore.go:40
↓ 5 callers
Method
SetIgnoreDirPatterns
SetIgnoreDirPatterns sets regular patterns of dirs to ignore
internal/common/ignore.go:58
↓ 5 callers
Method
SetIgnoreFromFile
SetIgnoreFromFile sets regular patterns of dirs to ignore
internal/common/ignore.go:66
↓ 5 callers
Method
SetMetadata
SetMetadata stores a metadata key-value pair
pkg/analyze/sqlite.go:482
↓ 5 callers
Method
SetNoSpawnShell
SetNoSpawnShell disables shell spawning
tui/tui.go:342
↓ 5 callers
Method
SetNoViewFile
()
tui/tui.go:346
↓ 5 callers
Method
ShouldRunInNonInteractiveMode
ShouldRunInNonInteractiveMode checks if the application should run in non-interactive mode based on the flags set.
cmd/gdu/app/app.go:110
↓ 5 callers
Function
SizeFromKey
SizeFromKey returns size from git-annex key.
pkg/annex/annex.go:12
↓ 5 callers
Method
analyzeParentOfTopDir
()
tui/keys.go:373
↓ 5 callers
Function
createTestZipFile
createTestZipFile creates a test zip file
pkg/analyze/zipdir_test.go:145
↓ 5 callers
Function
ensureTarDirExists
ensureTarDirExists ensures all directories in the specified path exist within dirMap
pkg/analyze/tardir.go:214
↓ 5 callers
Method
formatCount
(count int64)
stdout/stdout.go:524
↓ 5 callers
Function
includeByTimeBound
includeByTimeBound determines if a file should be included based on its mtime and the time bound
pkg/timefilter/timefilter.go:134
↓ 5 callers
Method
isInArchive
()
tui/actions.go:425
↓ 5 callers
Function
parseTimeValue
parseTimeValue parses a time value into either a timestamp instant or a date-only value
pkg/timefilter/timefilter.go:230
↓ 5 callers
Function
readMountsFile
(file io.Reader)
pkg/device/dev_linux.go:51
↓ 5 callers
Function
sortFiles
sortFiles sorts files in place according to sortBy and order
pkg/analyze/file.go:273
↓ 5 callers
Method
updateProgress
(analyzer common.Analyzer, doneChan common.SignalGroup)
tui/progress.go:12
↓ 4 callers
Function
FormatNumber
FormatNumber returns number as a string with thousands separator
internal/common/ui.go:72
↓ 4 callers
Method
GetMetadata
GetMetadata retrieves a metadata value by key
pkg/analyze/sqlite.go:494
↓ 4 callers
Method
GetMtime
GetMtime returns the modification time
pkg/analyze/sqlite.go:575
↓ 4 callers
Method
GetMultiLinkedInode
()
pkg/fs/file.go:43
↓ 4 callers
Method
GetUsage
GetUsage returns the disk usage
pkg/analyze/sqlite.go:568
↓ 4 callers
Method
IsEmpty
IsEmpty returns true if the TimeFilter has no filter criteria
pkg/timefilter/timefilter.go:97
↓ 4 callers
Function
ItemFromDir
ItemFromDir removes item from dir
pkg/remove/remove.go:11
↓ 4 callers
Function
ItemFromDirParallel
ItemFromDirParallel removes item from dir
pkg/remove/parallel.go:14
↓ 4 callers
Function
NewStorage
NewStorage returns new instance of badger storage
pkg/analyze/storage.go:36
↓ 4 callers
Method
SetDeleteInParallel
SetDeleteInParallel sets the flag to delete files in parallel
tui/tui.go:296
↓ 4 callers
Method
SetFlag
(flag rune)
pkg/analyze/top_dir.go:34
↓ 4 callers
Method
SetIgnoreHidden
SetIgnoreHidden sets flags if hidden dirs should be ignored
internal/common/ignore.go:103
↓ 4 callers
Method
SetInputCapture
(capture func(event *tcell.EventKey) *tcell.EventKey)
internal/common/app.go:17
↓ 4 callers
Method
SetNoDelete
SetNoDelete disables all write operations
tui/tui.go:337
↓ 4 callers
Method
SetTimeFilter
(timeFilter common.TimeFilter)
cmd/gdu/app/app.go:45
↓ 4 callers
Method
StoreDir
StoreDir saves item info into badger DB
pkg/analyze/storage.go:81
↓ 4 callers
Method
UpdateStats
(linkedItems fs.HardLinkedItems)
pkg/analyze/top_dir.go:80
↓ 4 callers
Method
UseOldSizeBar
UseOldSizeBar uses the old size bar (# chars) instead of the new one (unicode block elements)
tui/tui.go:285
↓ 4 callers
Function
createDirWithExtensions
()
tui/filter_test.go:149
↓ 4 callers
Function
createTestTarFile
(t *testing.T, path string)
pkg/analyze/tardir_test.go:49
↓ 4 callers
Method
deviceItemSelected
(row, column int)
tui/tui.go:451
↓ 4 callers
Method
handleLeft
()
tui/keys.go:355
↓ 4 callers
Function
isTarFile
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 callers
Method
rebuildFooter
()
tui/filter.go:11
↓ 4 callers
Function
setDirPlatformSpecificAttrs
(dir *Dir, path string)
pkg/analyze/dir_unix.go:34
↓ 4 callers
Function
setPlatformSpecificAttrs
(file *File, f os.FileInfo)
pkg/analyze/dir_unix.go:23
↓ 4 callers
Method
showErrFromGo
(msg string, err error)
tui/show.go:334
↓ 4 callers
Method
showFilterInput
()
tui/filter.go:30
↓ 4 callers
Function
writeTarEntries
--------------------------------------------------------------------------- Helpers to create test archives ------------------------------------------
pkg/analyze/tardir_test.go:26
↓ 3 callers
Method
Add
Add increments value
pkg/analyze/wait.go:20
↓ 3 callers
Method
AddUsage
(size, usage, itemCount int64)
pkg/analyze/top_dir.go:24
↓ 3 callers
Function
AnnexedFileInfo
AnnexedFileInfo returns a new FileInfo with size from git-annex key.
pkg/annex/annex.go:38
↓ 3 callers
Method
BeginBulkInsert
BeginBulkInsert starts a transaction and prepares statements for bulk insertion
pkg/analyze/sqlite.go:114
↓ 3 callers
Function
CollectTopFiles
(dir fs.Item, count int)
pkg/analyze/top.go:33
↓ 3 callers
Function
CreateStableOrderAnalyzer
CreateStableOrderAnalyzer returns parallel Analyzer which keeps stable order of files
pkg/analyze/parallel_stable.go:18
↓ 3 callers
Method
EndBulkInsert
EndBulkInsert commits the transaction and closes prepared statements
pkg/analyze/sqlite.go:165
↓ 3 callers
Method
FindByName
FindByName searches name in Files and returns its index
pkg/fs/file.go:72
↓ 3 callers
Method
GetFilesLocked
(SortBy, SortOrder)
pkg/fs/file.go:49
↓ 3 callers
Method
GetFlag
GetFlag returns the flag of the item
pkg/analyze/sqlite.go:540
↓ 3 callers
Method
GetItemStats
(linkedItems HardLinkedItems)
pkg/fs/file.go:45
↓ 3 callers
Function
GetNestedMountpointsPaths
GetNestedMountpointsPaths returns paths of nested mount points
pkg/device/dev.go:47
↓ 3 callers
Method
GetPath
GetPath returns the virtual path for zip directory
pkg/analyze/zipdir.go:60
↓ 3 callers
Method
GetPath
GetPath returns the virtual path for tar directory
pkg/analyze/tardir.go:61
↓ 3 callers
Method
IncludeByTimeFilter
IncludeByTimeFilter determines if a file should be included based on the complete time filter
pkg/timefilter/timefilter.go:78
↓ 3 callers
Method
IsHiddenDir
IsHiddenDir returns if the dir name begins with dot
internal/common/ignore.go:127
↓ 3 callers
Function
MockedPathChecker
MockedPathChecker is mocked os.Stat, returns (nil, nil)
internal/testdir/test_dir.go:28
↓ 3 callers
Function
NewTimeFilter
NewTimeFilter creates a new TimeFilter with the given parameters
pkg/timefilter/timefilter.go:29
↓ 3 callers
Function
NewTopList
NewTopList creates new TopList
pkg/analyze/top.go:17
↓ 3 callers
Method
Run
Run starts gdu main logic nolint:gocyclo,funlen // App function is a suite of if statements
cmd/gdu/app/app.go:200
↓ 3 callers
Method
SetBeforeDrawFunc
(func(screen tcell.Screen) bool)
internal/common/app.go:22
↓ 3 callers
Method
SetChangeCwdFn
SetChangeCwdFn sets function that can be used to change current working dir during dir browsing
tui/tui.go:291
↓ 3 callers
Method
SetCollapsePath
(value bool)
cmd/gdu/app/app.go:47
↓ 3 callers
Method
SetIgnoreTypes
SetIgnoreTypes sets file types to ignore
internal/common/ignore.go:91
↓ 3 callers
Method
SetIncludeTypes
SetIncludeTypes sets file types to include (whitelist)
internal/common/ignore.go:97
↓ 3 callers
Method
SetShowDiskProgressBar
SetShowDiskProgressBar sets whether to show a progress bar when scanning a whole disk
tui/tui.go:366
↓ 3 callers
Method
SetShowItemCount
SetShowItemCount sets the flag to show number of items in directory
tui/tui.go:327
↓ 3 callers
Method
ShouldDirBeIgnoredUsingPattern
ShouldDirBeIgnoredUsingPattern returns true if given path should be ignored
internal/common/ignore.go:118
↓ 3 callers
Method
Suspend
(f func())
internal/common/app.go:14
← previous
next →
101–200 of 1,255, ranked by callers