Copy a file or folder to a different location in Dropbox.
type: "io.kestra.plugin.dropbox.files.Copy"Examples
Copy a file from one location to another.
id: dropbox_copy
namespace: company.team
tasks:
- id: copy_file
type: io.kestra.plugin.dropbox.files.Copy
accessToken: "{{ secrets.DROPBOX_ACCESS_TOKEN }}"
from: "/source/template.csv"
to: "/reports/new_report.csv"
autorename: false
Properties
accessToken *Requiredstring
Dropbox access token.
from *RequiredNon-dynamicobject
The path of the file or folder to be copied.
Can be a direct path as a string, or a Kestra internal storage URI (kestra://...) of a file containing the path.
to *RequiredNon-dynamicobject
The destination path where the file or folder should be copied.
Can be a direct path as a string, or a Kestra internal storage URI (kestra://...) of a file containing the path.
autorename booleanstring
falseIf there's a conflict, have the Dropbox server try to autorename the file.
For example, appending (1) or (2).
Outputs
file DropboxFile
The metadata of the newly copied file or folder.
Definitions
io.kestra.plugin.dropbox.models.DropboxFile
clientModified string
date-timeThe last time the file was modified on Dropbox.
id string
The unique ID of the file or folder.
name string
The file or folder name.
path string
The lower-case version of the path for display.
size integer
The file size in bytes.
Null for folders.
type string
The type of the entry.
Can be 'file' or 'folder'.