Skip to main content

Module fs

Module fs 

Source
Expand description

The fs source: a .gitignore-aware filesystem walk that yields one SourceFile per file, symlink, and directory under the graph root.

Structs§

SourceFile
An entry delivered by a source: its graph-relative path, kind, and — for files — its raw bytes.

Enums§

NodeKind
What kind of filesystem entry a SourceFile is. Derived from lstat, so a symlink-to-directory is Symlink (indirection wins over target kind), and Dir always means a real directory.

Functions§

walk
Walk the tree under root, honoring .gitignore and the ignore globs, yielding one SourceFile per file, symlink, and directory. Paths are relative to root, sorted.