
Downloads
Download multiple files from a local filesystem directory to Kestra's internal storage.
Download multiple files from a local filesystem directory to Kestra's internal storage.
Download multiple files from a local filesystem directory to Kestra's internal storage.
Local filesystem access is disabled by default.
You must configure the plugin default allowed-paths in your Kestra configuration.
Example (Kestra config):
plugins:
configurations:
- type: io.kestra.plugin.fs.local.Downloads
values:
allowed-paths:
- /data/files
type: "io.kestra.plugin.fs.local.Downloads"Examples
id: fs_local_downloads
namespace: company.team
tasks:
- id: downloads
type: io.kestra.plugin.fs.local.Downloads
from: "/data/files/"
regExp: ".*.csv"
recursive: true
action: NONE
id: fs_local_downloads_move
namespace: company.team
tasks:
- id: downloads_move
type: io.kestra.plugin.fs.local.Downloads
from: /data/files/
regExp: ".*.csv"
recursive: true
action: MOVE
moveDirectory: "/data/archive"
Properties
from*Requiredstring
The directory to list
actionstring
NONEMOVEDELETENONEThe action to take on downloaded files
moveDirectorystring
The destination directory in case of MOVE
recursivebooleanstring
falseList file recursively
regExpstring
A regexp to filter on full path
Outputs
filesarray
Metadata of downloaded files
io.kestra.plugin.fs.local.models.File
date-timedate-timejava.nio.file.Path
date-timeurioutputFilesobject
The downloaded files formatted as a map of from/to URIs