Called for each directory after its fs.Stats have been retrieved.
Metadata about the directory, including paths, stats, and current tree node.
Must be called to continue traversal of the subtree.
Called for each file after its fs.Stats have been retrieved.
Metadata about the file, including paths, stats, and current tree node.
Must be called to continue processing.
Called when a directory's subtree is ready to be processed. Allows control over whether the subtree is traversed.
Metadata about the directory, including paths, and owner directory tree node.
Call this to continue processing the subtree.
Optionally call this to skip processing this subtree.
Configuration options for
SubtreeHooks. Provides callbacks that are invoked during directory traversal.Type Param: CustomTree
The shape of the custom tree used in the traversal.
Type Param: CustomFileData
The shape of the metadata object passed to callbacks.