DocsWorkflowsComponentsStoragestorage:local:dir:read

storage:local:dir:read

Read a directory with filters

Options

NameTypeDescription
dirstringThe path of the directory to scan, resolved inside the host's file root
ext[]stringFile extensions to include (e.g. ["go", "md"]); empty means all extensions
skip_ext[]stringFile extensions to exclude
skip_dir[]stringSubdirectory names to skip during traversal
levelsintDepth of directory traversal: -1 for unlimited, 0 for current dir only, 1 for one level deep, etc.

Outputs

NameTypeDescription
dirstringThe scanned directory path
files[]stringList of file paths found
dirs[]stringList of subdirectory paths found

Example

name: List the JSON files in a directory
actions:
  - name: inputs
    component: storage:local:dir:read
    vars:
      dir: ./data
      ext: json

outputs:
  files: "{{ inputs.files }}"