Move files within 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.Move
values:
allowed-paths:
- /data/files
yaml
type: "io.kestra.plugin.fs.local.Move"
Examples
Move a file within the local filesystem
yaml
id: "move"
type: "io.kestra.plugin.fs.local.Move"
id: move_file
namespace: company.team
tasks:
- id: move
type: io.kestra.plugin.fs.local.Move
from: /input/data.csv
to: /archive/data.csv
overwrite: true
Properties
from *Requiredstring
The file or directory to move from the local file system
to *Requiredstring
The path to move the file or directory to on the local file system
overwrite booleanstring
Default
false
Overwrite
If set to false, it will raise an exception if the destination folder or file already exists.