File System Operation
The FS Operation, or File System Operation, component allows you to move, copy, delete, and rename files on the filesystem or cloud storage. It also allows you to check if a file exists. To access the local filesystem, the XILL4_WORKDIRS
environment variable must be set to the path of the directories to be accessed.
Configuration
The operation to execute on the file. The following operations are available:
copy
: Copy a file or folder from one location to another.source
andtarget
must be set for this operation.move
: Move a file or folder from one location to another. This operation can also be used to rename a file.source
andtarget
must be set for this operation.delete
: Delete a file or folder.source
must be set for this operation.exists
: Check if a file or folder exists.source
must be set for this operation.create
: Create a directory.source
must be set for this operation.
The path to the source file. This path can either be relative or absolute. A relative path will be relative to the execution directory of the application.
Target FileThe path to the target file. This path can either be relative or absolute. A relative path will be relative to the execution directory of the application. The application will throw an error if the target file already exists. However, if the Overwrite existing files
option is set, it will proceed and the target file will be overwritten.
When ticked, the copy
and move
operations will overwrite existing files.
Inputs | Outputs
When the source
and target
fields are given in the incoming message they take precedence over the configured values.
{
"source": "C:\Users\Administrator\Downloads\new.xlsx",
"target": "C:\Users\Administrator\Downloads\new2.xlsx"
}