Expand description
The fs source: a .gitignore-aware filesystem walk that yields one
SourceFile per file, symlink, and directory under the graph root.
Structs§
- Source
File - An entry delivered by a source: its graph-relative path, kind, and — for files — its raw bytes.
Enums§
- Node
Kind - What kind of filesystem entry a
SourceFileis. Derived fromlstat, so a symlink-to-directory isSymlink(indirection wins over target kind), andDiralways means a real directory.
Functions§
- walk
- Walk the tree under
root, honoring.gitignoreand theignoreglobs, yielding oneSourceFileper file, symlink, and directory. Paths are relative toroot, sorted.