Action File System
Find Files (Grep)
Searches for files in a directory based on name patterns or content. Outputs a list of matching file paths.
Node IDGrepAction
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
Directory directory | file_picker | Yes | — | The starting directory for the search. |
Search Mode searchMode | enum | Yes | File Name | Determines whether to search by file name/path or by the content within files. |
Match Type matchType | enum | No | Contains | 'Contains' performs simple substring matching on the file name or content. 'Regex' uses regular expressions (on the full path for File Name mode, on each line for File Content mode). |
Pattern pattern | string | Yes | — | The pattern to search for. For 'Contains' mode, this is a simple substring to match (e.g., 'test' will match 'test_001.txt'). For 'Regex' mode, this is a regular expression pattern. |
File Extensions fileExtensions | string | No | — | Optional comma-separated list of file extensions to filter (e.g., "txt,log,md"). If empty, all file types are searched. Extensions should be specified without the dot. |
Recursive recursive | boolean | No | true | If true, the search will include all subdirectories. |
Case Sensitive caseSensitive | boolean | No | false | If true, the pattern matching will be case-sensitive. |
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
Execute input0 | object | Yes | An incoming execution signal. |
Outputs
| Output | Type | Identifier | Description |
|---|---|---|---|
Matched Paths output0 | object | matched_paths | Emits a standard data object containing a list of full file paths that match the criteria. |