Download multiple files from a local filesystem directory to Kestra's internal storage.
yaml
type: "io.kestra.plugin.fs.local.Downloads"
Examples
yaml
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
allowedPaths:
- /data/files
yaml
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"
allowedPaths:
- /data/files
- /data/archive
Properties
from *Requiredstring
The directory to list
action string
Default
NONE
Possible Values
MOVE
DELETE
NONE
The action to take on downloaded files
moveDirectory string
The destination directory in case of MOVE
recursive booleanstring
Default
false
List file recursively
regExp string
A regexp to filter on full path
Outputs
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