Copy files within the local file system.

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.Copy
      values: 
        allowed-paths: 
          - /data/files
yaml
type: "io.kestra.plugin.fs.local.Copy"

Copy a file within the local filesystem

yaml
id: "copy"
type: "io.kestra.plugin.fs.local.Copy"
id: copy_file
namespace: company.team

tasks:
  - id: copy
    type: io.kestra.plugin.fs.local.Copy
    from: "input/data.csv"
    to: "backup/data.csv"
    overwrite: true
Properties

The file or directory to move from local file system.

The path to move the file or directory to on the local file system.

Default false

Overwrite.

If set to false, it will raise an exception if the destination folder or file already exists.