
File system List
CertifiedList local files
File system List
List local files
Lists files under a directory allowed by allowed-paths; optional regexp filter and recursion. Sorted with sort (default NONE) before limiting results to maxFiles (default 25).
Local access requires allowed-paths in plugin defaults.
Example (Kestra config):
plugins:
configurations:
- type: io.kestra.plugin.fs.local.List
values:
allowed-paths:
- /data/files
type: io.kestra.plugin.fs.local.ListExamples
id: fs_local_list
namespace: company.team
tasks:
- id: list_files
type: io.kestra.plugin.fs.local.List
from: "/data/input"
regExp: ".*.csv"
recursive: true
sort: LAST_MODIFIED_DESC
Properties
from *Requiredstring
Directory to scan
maxFiles integerstring
25Maximum files to retrieve
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
recursive booleanstring
falseInclude subdirectories
If true, list files recursively.
regExp string
Regular expression filter
Only files matching this regex are listed.
sort string
NONENONELAST_MODIFIED_ASCLAST_MODIFIED_DESCNAME_ASCNAME_DESCSort order applied to the list before maxFiles truncation
NONE (default) preserves the order returned by the filesystem walk. LAST_MODIFIED_ASC/LAST_MODIFIED_DESC sort by last modified date, oldest/newest first. NAME_ASC/NAME_DESC sort alphabetically by file name.
Outputs
count integer
Count of files found
files array
List of files found
io.kestra.plugin.fs.local.models.File
date-timedate-timejava.nio.file.Path
date-timeuri