Skip to content

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.

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.

ParameterEditorDescription
pathexpressionFolder to list. Ex: C:\descargas.
ParameterEditorDescription
patterntextglob pattern to filter. By default * (all). Ex: *.xlsx, factura_*.pdf.
recursivebooleanIncluir subcarpetas. Por defecto false.
includelistWhat to include: files (def.) · directories · all.

Returns a string[] (route array). Walk through it with For Each.

Process all Excel in a folder and its subfolders:

List Files path = "C:/datos" pattern = "*.xlsx" recursive = true → output: archivos
Log message = = "Encontrados " + count(archivos) + " archivos"
For Each items = = archivos itemVariable = ruta
└─ activities:
Read Excel Sheet path = = ruta → output: tabla
... procesar ...