godirwalk
godirwalk

GoDoc Build Status

In short, why do I use this library?

filepath.Walkfilepath.Walkfilepath.Walkfilepath.Walk

Usage Example

examples/
filepath.Clean
os.ReadDiros.ReadDirnames

Description

godirwalkfilepath.Walkos.ReadDiros.ReadDirnames
filepath.Walk
filepath.Walkfind
syscall
filepath.Walkfilepath.Walkos.Statos.FileInfo
os.FileInfoos.Statos.FileMode
os.FileModeos.FileModeos.FileInfoos.Stat

Benchmarks

macOS
Linux
filepath.Walk

I did not previously care about this either, but humor me. We all love how we can write once and run everywhere. It is essential for the language's adoption, growth, and success, that the software we create can run unmodified on all architectures and operating systems supported by Go.

filepath.Walkfilepath.Walkfilepath.Walkfilepath.Walkfilepath.Walk
filepath.Walk
FollowSymbolicLinks
filepath.Walk
os.Statfilepath.WalkFuncos.Stat
filepath.Walkfilepath.Clean
filepath.Walksome/path/to/foo.txtsome\path\to\foo.txt
filepath.Walk

Configurable Handling of Symbolic Links

filepath.WalkFollowSymbolicLinks

Configurable Sorting of Directory Children

filepath.WalkUnsortedUnsorted
Unsorted

Configurable Post Children Callback

examples/clean-empties

Configurable Error Callback

examples/walk-fast