Skip to content

Directory Walk

Lists files and directories at a given path, with support for recursion and glob filtering.

Inputs#

Port Description
Dir Path
The path to the directory to search. Use a single dot (.) for the current working directory.
Glob
A glob pattern to filter items. Multiple patterns can be separated by a semicolon (;). See Glob Pattern.
Recursive
If true, searches the directory and all its subdirectories.
Dirs
If true, directories are included in the results.
Files
If true, files are included in the results.

Outputs#

Port Description
Success
Triggered when the directory walk completes successfully.
Error
Triggered if an error occurs, such as an invalid path, permission issues, or a bad glob pattern.
Absolute Paths
The list of absolute paths for all found items. The item order matches the Relative Paths output.
Relative Paths
The list of paths for all found items, relative to the input Dir Path. The item order matches the Absolute Paths output.

ID: core/dir-walk@v1