Download multiple files from a local filesystem directory to Kestra's internal storage.

yaml
type: "io.kestra.plugin.fs.local.Downloads"
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

The directory to list

Default NONE
Possible Values
MOVEDELETENONE

The action to take on downloaded files

The destination directory in case of MOVE

Default false

List file recursively

A regexp to filter on full path

SubType

Metadata of downloaded files

SubType string

The downloaded files formatted as a map of from/to URIs

Format date-time
Format date-time
Format date-time
Format uri