MCPcopy Create free account

hub / github.com/a8m/tree / functions

Functions58 in github.com/a8m/tree

↓ 9 callersMethodIsDir
()
node_test.go:34
↓ 9 callersMethodVisit
Visit all files under the given node.
node.go:96
↓ 8 callersMethodName
()
node_test.go:21
↓ 8 callersFunctionNew
New get path and create new node(root).
node.go:91
↓ 8 callersMethodPrint
Print nodes based on the given configuration.
node.go:227
↓ 6 callersMethodaddFile
(path string, file *file)
node_test.go:56
↓ 6 callersMethodclean
()
node_test.go:51
↓ 6 callersMethodclear
()
node_test.go:94
↓ 5 callersMethodSize
()
node_test.go:22
↓ 5 callersMethodSys
()
node_test.go:35
↓ 5 callersMethodequal
(s string)
node_test.go:85
↓ 5 callersMethodmatch
(pattern string, opt *Options)
node.go:181
↓ 4 callersMethodModTime
()
node_test.go:33
↓ 4 callersFunctionisdigit
(b byte)
sort.go:55
↓ 3 callersMethodMode
()
node_test.go:23
↓ 3 callersFunctioncontains
case-insensitive contains helper
color.go:70
↓ 2 callersFunctionANSIColor
ANSIColor
color.go:31
↓ 2 callersFunctionModSort
(f1, f2 os.FileInfo)
sort.go:19
↓ 2 callersMethodStat
(path string)
node.go:35
↓ 2 callersMethodcolor
(node *Node, s string)
node.go:82
↓ 2 callersFunctionerrAndExit
(err error)
cmd/tree/tree.go:177
↓ 2 callersFunctionformatBytes
Convert bytes to human readable string. Like a 2 MB, 64.2 KB, 52 B
node.go:423
↓ 1 callersFunctionANSIColorFormat
ANSIColorFormat
color.go:26
↓ 1 callersFunctionNaturalLess
NaturalLess compares two strings using natural ordering. This means that e.g. "abc2" < "abc12". Non-digit sequences and numbers are compared separate
sort.go:67
↓ 1 callersFunctionNewFs
()
node_test.go:47
↓ 1 callersFunctionPrint
Print a tree of the directory
ostree/ostree.go:33
↓ 1 callersMethodReadDir
(path string)
node.go:36
↓ 1 callersFunctiondirRecursiveSize
(opts *Options, node *Node)
node.go:229
↓ 1 callersFunctiongetStat
(fi os.FileInfo)
stat_unix.go:10
↓ 1 callersMethodprint
(indent string, opts *Options)
node.go:253
↓ 1 callersMethodsort
(opts *Options)
node.go:194
FunctionCTimeSort
(f1, f2 os.FileInfo)
csort_unix.go:11
FunctionCTimeSort
(f1, f2 os.FileInfo)
csort_bsd.go:10
FunctionDirSort
(f1, f2 os.FileInfo)
sort.go:27
MethodLen
()
sort.go:5
MethodLess
(i, j int)
sort.go:13
FunctionNameSort
(f1, f2 os.FileInfo)
sort.go:41
MethodPath
Path returns the Node's absolute path
node.go:222
MethodReadDir
(path string)
node_test.go:72
MethodReadDir
ReadDir reads a directory
ostree/ostree.go:19
FunctionSizeSort
(f1, f2 os.FileInfo)
sort.go:34
MethodStat
(path string)
node_test.go:66
MethodStat
Stat a path
ostree/ostree.go:14
MethodSwap
(i, j int)
sort.go:6
FunctionTestCount
(t *testing.T)
node_test.go:451
FunctionTestError
(t *testing.T)
node_test.go:626
FunctionTestExtension
(t *testing.T)
color_test.go:18
FunctionTestFileMode
(t *testing.T)
color_test.go:45
FunctionTestGraphics
(t *testing.T)
node_test.go:397
FunctionTestSimple
(t *testing.T)
node_test.go:244
FunctionTestSort
(t *testing.T)
node_test.go:334
FunctionTestSymlink
(t *testing.T)
node_test.go:432
FunctionTestTree
(t *testing.T)
ostree/ostree_test.go:7
FunctionVerSort
(f1, f2 os.FileInfo)
sort.go:48
MethodWrite
(p []byte)
node_test.go:89
FunctiongetStat
(fi os.FileInfo)
stat_unsupported.go:7
Functionmain
()
cmd/tree/tree.go:85
FunctionusageAndExit
(msg string)
cmd/tree/tree.go:167