List Files
List Files
Section titled “List Files”Type: list-files · Package: Filesystem Activities v1.0.0 · Output: string[]
Returns a path list of the files (or folders) within a directory. It is the basis of the processes that work on many files: go through all the Excels in a folder, process each PDF of downloads, archive what arrived today. Supports patterns (*.xlsx), searching in subfolders and filtering by type.
How it works
Section titled “How it works”Lists the contents of the path folder. Filter by pattern (a glob like *.xlsx), optionally down to subfolders (recursive), and decide whether to include files, folders, or both (include). Returns the paths as an array of texts, which you normally loop with For Each.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
path | expression | Folder to list. Ex: C:\descargas. |
Optional parameters
Section titled “Optional parameters”| Parameter | Editor | Description |
|---|---|---|
pattern | text | glob pattern to filter. By default * (all). Ex: *.xlsx, factura_*.pdf. |
recursive | boolean | Incluir subcarpetas. Por defecto false. |
include | list | What to include: files (def.) · directories · all. |
Output
Section titled “Output”Returns a string[] (route array). Walk through it with For Each.
Example
Section titled “Example”Process all Excel in a folder and its subfolders:
List Files path = "C:/datos" pattern = "*.xlsx" recursive = true → output: archivosLog message = = "Encontrados " + count(archivos) + " archivos"
For Each items = = archivos itemVariable = ruta └─ activities: Read Excel Sheet path = = ruta → output: tabla ... procesar ...Related activities
Section titled “Related activities”- For Each — cycle through the listed files.
- Move File / Copy File — act on each file.
- File Exists — check a specific file.