Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MichaelTJones/walk
/ functions
Functions
42 in github.com/MichaelTJones/walk
⨍
Functions
42
◇
Types & classes
5
↓ 7 callers
Method
append
(c byte)
walk.go:203
↓ 7 callers
Function
isSlash
(c uint8)
path_windows.go:11
↓ 5 callers
Function
Clean
Clean returns the shortest path name equivalent to path by purely lexical processing. It applies the following rules iteratively until no further pro
walk.go:249
↓ 4 callers
Function
markTree
(n *Node)
walk_test.go:75
↓ 4 callers
Method
setTerminated
(err error)
walk.go:60
↓ 4 callers
Function
touch
(t *testing.T, name string)
walk_test.go:180
↓ 4 callers
Function
walkTree
(n *Node, path string, f func(path string, n *Node))
walk_test.go:53
↓ 3 callers
Function
checkMarks
(t *testing.T, report bool)
walk_test.go:77
↓ 2 callers
Function
FromSlash
FromSlash returns the result of replacing each slash ('/') character in path with a separator character. Multiple slashes are replaced by multiple sep
walk.go:336
↓ 2 callers
Function
VolumeName
VolumeName returns leading volume name. Given "C:\foo\bar" it returns "C:" under windows. Given "\\host\share\foo" it returns "\\host\share". On other
walk.go:434
↓ 2 callers
Function
volumeNameLen
volumeNameLen returns length of the leading volume name on Windows. It returns 0 elsewhere.
path_unix.go:18
↓ 1 callers
Function
IsAbs
IsAbs returns true if the path is absolute.
path_unix.go:12
↓ 1 callers
Function
Join
Join joins any number of path elements into a single path, adding a Separator if necessary. The result is Cleaned, in particular all empty strings are
walk.go:346
↓ 1 callers
Function
evalSymlinks
(path string)
symlink.go:16
↓ 1 callers
Method
index
(i int)
walk.go:196
↓ 1 callers
Function
makeTree
(t *testing.T)
walk_test.go:60
↓ 1 callers
Function
mark
Assumes that each node name is unique. Good enough for a test. If clear is true, any incoming error is cleared before return. The errors are always ac
walk_test.go:89
↓ 1 callers
Function
readDirNames
THE REMAINDER IS UNCHANGED FROM THE ORGINAL GO LIBRARY ORIGINAL readDirNames reads the directory named by dirname and returns a sorted list of direc
walk.go:170
↓ 1 callers
Method
string
()
walk.go:216
↓ 1 callers
Method
terminated
()
walk.go:53
↓ 1 callers
Function
toLong
(path string)
symlink_windows.go:31
↓ 1 callers
Function
toShort
(path string)
symlink_windows.go:11
↓ 1 callers
Method
visitChannel
()
walk.go:69
↓ 1 callers
Method
visitFile
(file VisitData)
walk.go:76
↓ 1 callers
Function
volumeNameLen
volumeNameLen returns length of the leading volume name on Windows. It returns 0 elsewhere.
path_windows.go:30
Function
EvalSymlinks
EvalSymlinks returns the path name after the evaluation of any symbolic links. If path is relative the result will be relative to the current director
walk.go:442
Function
HasPrefix
HasPrefix exists for historical compatibility and should not be used.
path_windows.go:67
Function
HasPrefix
HasPrefix exists for historical compatibility and should not be used.
path_plan9.go:21
Function
HasPrefix
HasPrefix exists for historical compatibility and should not be used.
path_unix.go:23
Function
IsAbs
IsAbs returns true if the path is absolute.
path_windows.go:16
Function
IsAbs
IsAbs returns true if the path is absolute.
path_plan9.go:10
Function
Rel
Rel returns a relative path that is lexically equivalent to targpath when joined to basepath with an intervening separator. That is, Join(basepath, Re
walk.go:362
Function
TestBug3486
(t *testing.T)
walk_test.go:237
Function
TestWalk
(t *testing.T)
walk_test.go:106
Function
TestWalkFileError
(t *testing.T)
walk_test.go:190
Function
ToSlash
ToSlash returns the result of replacing each separator character in path with a slash ('/') character. Multiple separators are replaced by multiple sl
walk.go:326
Function
Walk
Walk walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root. All errors that arise visiting files a
walk.go:140
Function
evalSymlinks
(path string)
symlink_windows.go:52
Function
splitList
(path string)
path_windows.go:74
Function
splitList
(path string)
path_plan9.go:25
Function
splitList
(path string)
path_unix.go:27
Function
volumeNameLen
volumeNameLen returns length of the leading volume name on Windows. It returns 0 elsewhere.
path_plan9.go:16