Skip to content

folder ​

Expose a directory path and name as a workflow resource.

When to use it ​

Use this node to make a directory location available to another step. Use a directory loop for per-file iteration or local-vectorize to build a retrieval index.

Example ​

rattish
Rattish: 1

Workflow:
  name: Describe a folder

Node step:
  type: folder
  path: notes
  finish: pass

Create the directory before preflight, or give the node needs on the step that creates it. Bind fields such as node.step.output.folder_path downstream. This node does not recursively list or attach every file in the directory.

A folder path is context for a consumer, not permission to ignore that consumer's own access controls.

Configuration ​

Configuration fields use hyphens. These are the node-specific fields; shared execution fields apply separately.

FieldTypeRequired / defaultMeaning
pathstringRequiredTarget filesystem path.

Inputs and output ​

This node has no declared input ports. Configure its authored fields directly.

Successful output fields use these exact selector names:

FieldValue type
pathstring
folder_pathstring
folder_namestring
parent_pathstring
directorystring

For example, refer to node.step.output.path from a compatible downstream binding.

Preflight and limits ​

The directory must exist and be accessible. When the node has needs, preflight skips the existence check because an upstream step may create it earlier in the run; the node then reports a missing directory when it runs. Its contents can still change before later steps read them.

Use Raticode rattish check and Raticode rattish preflight before choosing to run the example. The installed contract is available through Raticode rattish docs --format json.

Continue with Node reference, Routes and joins, or Runs and approvals.