Skip to content

Directory Walk

Walks through a directory and executes a body for each file

Inputs#

Port Description
Dir Path
The directory to walk. use a single dot (.) for the current directory.
Glob
The glob to match. It is applied on both, files and directories. See Glob Pattern.
Recursive
Whether to walk recursively
Dirs
Whether to include directories
Files
Whether to include files

Outputs#

Port Description
Success
Error
Triggered if the input path is not a directory or if there is an error walking the directory. Also fails if an invalid glob pattern is set.
Absolute Paths
The items that were walked with their absolute paths. The order is unspecified and determined by the underlying filesystem, but equal to the relative paths.
Relative Paths
The items that were walked with their relative paths. The order is unspecified and determined by the underlying filesystem, but equal to the absolute paths.

ID: dir-walk@v1