Home | History | Annotate | Download | only in filepath

Lines Matching defs:Walk

332 // visited by Walk. The path argument contains the argument to Walk as a
333 // prefix; that is, if Walk is called with "dir", which is a directory
334 // containing the file "a", the walk function will be called with argument
339 // to handle that error (and Walk will not descend into that directory). If
342 // on a directory, Walk skips the directory's contents entirely.
344 // Walk skips the remaining files in the containing directory.
349 // walk recursively descends path, calling w.
350 func walk(path string, info os.FileInfo, walkFn WalkFunc) error {
376 err = walk(filename, fileInfo, walkFn)
387 // Walk walks the file tree rooted at root, calling walkFn for each file or
391 // large directories Walk can be inefficient.
392 // Walk does not follow symbolic links.
393 func Walk(root string, walkFn WalkFunc) error {
398 err = walk(root, info, walkFn)