MCPcopy Create free account

hub / github.com/dundee/gdu / functions

Functions1,255 in github.com/dundee/gdu

↓ 198 callersMethodGetName
()
pkg/fs/file.go:33
↓ 171 callersFunctionCreateTestDir
CreateTestDir creates test dir structure
internal/testdir/test_dir.go:9
↓ 141 callersFunctionCreateMockedApp
CreateMockedApp returns app with simulation screen for tests
internal/testapp/app.go:36
↓ 140 callersFunctionCreateUI
CreateUI creates the whole UI app
tui/tui.go:115
↓ 130 callersFunctionCreateSimScreen
CreateSimScreen returns tcell.SimulationScreen
internal/testapp/app.go:13
↓ 115 callersMethodkeyPressed
(key *tcell.EventKey)
tui/keys.go:17
↓ 95 callersMethodGetUpdateDraws
QueueUpdateDraw does nothing
internal/testapp/app.go:95
↓ 83 callersMethodAnalyzePath
(path string, parentDir gfs.Item)
cmd/gdu/app/app.go:33
↓ 77 callersMethodIsDir
()
pkg/fs/file.go:35
↓ 74 callersMethodGetSize
()
pkg/fs/file.go:36
↓ 72 callersMethodAnalyzeDir
(path string, ignore ShouldDirBeIgnored, fileTypeFilter ShouldFileBeIgnored)
internal/common/analyze.go:26
↓ 68 callersMethodWait
Wait blocks until value is 0
pkg/analyze/wait.go:35
↓ 65 callersMethodClose
()
pkg/analyze/tardir.go:85
↓ 65 callersMethodGetDone
()
internal/common/analyze.go:32
↓ 55 callersMethodAdd
Add adds file to the list
pkg/analyze/top.go:22
↓ 54 callersMethodGetFiles
(SortBy, SortOrder)
pkg/fs/file.go:48
↓ 48 callersMethodGetUsage
()
pkg/fs/file.go:38
↓ 44 callersMethodInsertItem
InsertItem inserts a file/directory item into the database
pkg/analyze/sqlite.go:253
↓ 44 callersFunctionrunApp
nolint: unparam // Why: it's used in linux tests
cmd/gdu/app/app_test.go:678
↓ 43 callersFunctionCreateStdoutUI
CreateStdoutUI creates UI for stdout
stdout/stdout.go:43
↓ 42 callersMethodformatSize
(size int64)
stdout/stdout.go:539
↓ 40 callersMethodGetParent
()
pkg/fs/file.go:41
↓ 39 callersMethodGetPath
()
pkg/fs/file.go:32
↓ 38 callersMethodUpdateStats
(linkedItems HardLinkedItems)
pkg/fs/file.go:46
↓ 35 callersMethodClose
Close closes the database connection
pkg/analyze/sqlite.go:98
↓ 34 callersFunctiongetAnalyzedPathMockedApp
(t *testing.T, useColors, apparentSize, mockedAnalyzer bool)
tui/tui_test.go:887
↓ 33 callersMethodGetItemCount
()
pkg/fs/file.go:40
↓ 32 callersMethodshowDir
nolint: funlen // Why: complex function
tui/show.go:54
↓ 31 callersMethodGetFlag
()
pkg/fs/file.go:34
↓ 29 callersMethodSize
Length in bytes for regular files; system-dependent for others
pkg/annex/annex.go:63
↓ 29 callersMethodformatSize
(size int64, reverseColor, transparentBg bool)
tui/format.go:195
↓ 27 callersFunctionNewSqliteStorage
NewSqliteStorage creates a new SQLite storage and initializes the schema
pkg/analyze/sqlite.go:32
↓ 27 callersMethodSetIgnoreDirPaths
(paths []string)
cmd/gdu/app/app.go:37
↓ 26 callersMethodQueueUpdateDraw
(f func())
internal/common/app.go:21
↓ 26 callersMethodshowErr
(msg string, err error)
tui/show.go:313
↓ 25 callersMethodRLock
()
pkg/fs/file.go:52
↓ 24 callersFunctionCreateAnalyzer
CreateAnalyzer returns Analyzer
pkg/analyze/parallel.go:23
↓ 24 callersMethodGetItemByID
GetItemByID returns an item by its ID
pkg/analyze/sqlite.go:444
↓ 23 callersMethodGetMtime
()
pkg/fs/file.go:39
↓ 23 callersFunctiongetUsageGraph
(part int)
tui/utils.go:34
↓ 22 callersFunctionCreateSqliteAnalyzer
CreateSqliteAnalyzer creates a new SQLite analyzer
pkg/analyze/sqlite.go:843
↓ 21 callersFunctionCreateSeqAnalyzer
CreateSeqAnalyzer returns Analyzer
pkg/analyze/sequential.go:18
↓ 20 callersMethodRemove
Remove removes File from Files
pkg/fs/file.go:82
↓ 20 callersMethodSetFocus
(p tview.Primitive)
internal/common/app.go:16
↓ 20 callersMethodStartUILoop
()
cmd/gdu/app/app.go:48
↓ 18 callersMethodSetFollowSymlinks
(value bool)
cmd/gdu/app/app.go:42
↓ 18 callersFunctiontableContains
(ui *UI, name string)
tui/filter_test.go:473
↓ 17 callersMethodCreateIgnoreFunc
CreateIgnoreFunc returns function for detecting if dir should be ignored nolint: gocyclo // Why: This function is a switch statement that is not too c
internal/common/ignore.go:188
↓ 17 callersMethodOpen
Open opens badger DB
pkg/analyze/storage.go:58
↓ 17 callersMethodformatSize
(size int64)
report/export.go:214
↓ 16 callersMethodBroadcast
()
internal/common/signal.go:11
↓ 16 callersMethodGetType
()
pkg/fs/file.go:37
↓ 16 callersMethodLen
()
pkg/fs/file.go:99
↓ 15 callersFunctionCreateStoredAnalyzer
CreateStoredAnalyzer returns Analyzer
pkg/analyze/stored.go:24
↓ 15 callersMethodRun
()
internal/common/app.go:12
↓ 14 callersMethodAddFile
(Item)
pkg/fs/file.go:47
↓ 14 callersFunctionCreateTopDirAnalyzer
CreateTopDirAnalyzer returns Analyzer
pkg/analyze/parallel_top_dir.go:28
↓ 14 callersMethodDone
Done decrements the value by one, if value is 0, lock is released
pkg/analyze/wait.go:27
↓ 13 callersMethodListDevices
(getter device.DevicesInfoGetter)
cmd/gdu/app/app.go:32
↓ 13 callersMethodSetArchiveBrowsing
(value bool)
cmd/gdu/app/app.go:46
↓ 13 callersFunctiongetFlag
(f os.FileInfo)
pkg/analyze/parallel.go:204
↓ 13 callersFunctionisZipFile
isZipFile checks if a file is a zip or jar file
pkg/analyze/zipdir.go:68
↓ 13 callersFunctionprocessTarFile
processTarFile reads a tar archive and returns a TarDir representing its contents. TarDir.Size is set to the total uncompressed content size; TarDir.U
pkg/analyze/tardir.go:133
↓ 12 callersFunctionCreateTestAppWithSimScreen
CreateTestAppWithSimScreen returns app with simulation screen for tests
internal/testapp/app.go:19
↓ 12 callersMethodSetParent
(Item)
pkg/fs/file.go:42
↓ 11 callersFunctionReadAnalysis
ReadAnalysis reads analysis report from JSON file and returns directory item
report/import.go:15
↓ 11 callersMethodSetDeleteInBackground
SetDeleteInBackground sets the flag to delete files in background
tui/tui.go:371
↓ 11 callersMethodSetShowAnnexedSize
(value bool)
cmd/gdu/app/app.go:43
↓ 11 callersMethodStop
()
internal/common/app.go:13
↓ 11 callersMethoddeleteSelected
(shouldEmpty bool)
tui/actions.go:193
↓ 11 callersFunctionfollowSymlink
(path string, gitAnnexedSize bool)
pkg/analyze/symlink.go:11
↓ 11 callersFunctiongetAnalyzedPathWithSorting
(sortBy string, sortOrder string, apparentSize bool)
tui/sort_test.go:186
↓ 11 callersMethodmatchesTypeFilter
matchesTypeFilter returns true if the file name matches the type filter. Directories always match. Files are matched by extension against the comma-se
tui/filter.go:121
↓ 11 callersMethodsetSorting
(newOrder string)
tui/sort.go:30
↓ 10 callersFunctionCreateExportUI
CreateExportUI creates UI for stdout
report/export.go:33
↓ 10 callersMethodGetProgress
()
internal/common/analyze.go:33
↓ 10 callersMethodUpdateProgress
UpdateProgress updates progress
pkg/analyze/analyzer.go:84
↓ 10 callersMethodfileItemSelected
(row, column int)
tui/tui.go:394
↓ 10 callersFunctiongetDirFlag
(err error, items int)
pkg/analyze/parallel.go:193
↓ 10 callersFunctionprocessZipFile
processZipFile processes a zip file and returns a ZipDir representing its contents
pkg/analyze/zipdir.go:74
↓ 9 callersMethodEncodeJSON
(writer io.Writer, topLevel bool)
pkg/fs/file.go:44
↓ 9 callersMethodGetSize
GetSize returns size of the file
pkg/analyze/file.go:55
↓ 9 callersMethodGetUsage
GetUsage returns usage of the file
pkg/analyze/file.go:60
↓ 9 callersMethodReadAnalysis
(input io.Reader)
cmd/gdu/app/app.go:34
↓ 9 callersMethodformatFileRow
(item fs.Item, maxUsage, maxSize int64, marked, ignored bool)
tui/format.go:20
↓ 9 callersFunctiongetZipFileSize
getZipFileSize gets the total uncompressed size of a zip file
pkg/analyze/zipdir.go:180
↓ 9 callersMethodonMouse
(event *tcell.EventMouse, action tview.MouseAction)
tui/mouse.go:11
↓ 8 callersMethodAddFile
AddFile add item to files
pkg/analyze/file.go:151
↓ 8 callersMethodResetProgress
()
internal/common/analyze.go:34
↓ 8 callersMethoddeleteMarked
(shouldEmpty bool)
tui/marked.go:25
↓ 8 callersMethodformatCollapsedRow
formatCollapsedRow formats a collapsed directory path for display
tui/format.go:106
↓ 7 callersMethodCreateFileTypeFilter
CreateFileTypeFilter returns function for detecting if file should be ignored based on type
internal/common/ignore.go:218
↓ 7 callersMethodDraw
Draw implements tview.Primitive. It draws the border (via Box.Draw) and then fills the inner rect with a segmented progress bar.
tui/progressbar.go:59
↓ 7 callersMethodGetProgress
GetProgress returns the current progress in the range [0, 100].
tui/progressbar.go:51
↓ 7 callersMethodInit
Init prepares the WaitGroup for usage, locks
pkg/analyze/wait.go:14
↓ 7 callersMethodSetProgress
SetProgress sets the current progress in the range [0, 100].
tui/progressbar.go:39
↓ 7 callersMethodconfirmDeletion
(shouldEmpty bool)
tui/tui.go:475
↓ 7 callersFunctionfindCollapsiblePath
findCollapsiblePath checks if the given directory item has a single subdirectory chain and returns a CollapsedPath if it can be collapsed
tui/utils.go:88
↓ 7 callersFunctiongetDevicesInfoMock
()
tui/tui_test.go:868
↓ 7 callersFunctionprocessMounts
(mounts Devices, ignoreErrors bool)
pkg/device/dev_linux.go:74
next →1–100 of 1,255, ranked by callers