Activity |
MoveFiles |
---|---|
Description |
Move files from one filestore to another |
Available Since |
1.4.9 |
Input :
PropertyName |
Type |
Required |
Default Value |
Description |
---|---|---|---|---|
fileTokens |
STRING ARRAY |
YES |
|
List of filetoken to move |
destinationFileStore |
STRING |
YES |
|
Destination Filestore name |
destinationPath |
STRING |
NO |
/ |
Directory where to store files at destination |
bufferSize |
INT |
NO |
2048 |
Size of the buffer used while copying files |
overwrite |
BOOL |
NO |
TRUE |
Indicate if we have to overwrite files at destination |
deleteSource |
BOOL |
NO |
TRUE |
indicate if the source files must be deleted after being copied |
Output
Array of destination file tokens
Example1: Move two files to “output” file store
Input
{
"fileTokens":[
"ftp://ftpsrv1/file1.txt",
"s3://s3aws/file2.xlsx",
],
"destinationFileStore": "output",
"destinationPath":"/backup"
}
Output
[
"ftps://ssh001/backup/file1.txt",
"ftps://ssh001/backup/file2.xslx",
]
Example1: Copy one files to “output” file store
Input
{
"fileTokens":[
"ftp://ftpsrv1/file1.txt"
],
"destinationFileStore": "output",
"destinationPath":"/backup",
"deleteSource":false
}
Output
[
"ftps://ssh001/backup/file1.txt"
]