List files in the local filesystem.
Local filesystem access is disabled by default.
You must configure the plugin default allowed-paths
in your Kestra configuration.
Example (Kestra config):
yaml
plugins:
configurations:
- type: io.kestra.plugin.fs.local.List
values:
allowed-paths:
- /data/files
yaml
type: "io.kestra.plugin.fs.local.List"
Examples
yaml
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
Properties
from *Requiredstring
The fully-qualified URIs that point to the path
recursive booleanstring
Default
false
Whether to include subdirectories
If true, the task will recursively list files in all subdirectories.
regExp string
Regular expression to filter files
Only files matching this regular expression will be listed.
Definitions
io.kestra.plugin.fs.local.models.File
accessedDate string
Format
date-time
createdDate string
Format
date-time
isDirectory boolean
localPath Path
modifiedDate string
Format
date-time
name string
parent string
size integer
uri string
Format
uri