File
Creates and manages files in the filesystem with automatic directory creation and proper cleanup on deletion.Properties
string
required
Path to the file (relative or absolute).
string
required
Content to write to the file.
Returns
string
Path to the created file.
string
Content of the file.
Examples
Create a simple text file
Create a file in a nested directory
Update file content and path
Folder
Creates and manages directories in the filesystem with automatic parent directory creation and cleanup on deletion.Properties
string
Path to the folder. If not provided, uses the resource ID.
boolean
Whether to delete the folder during the delete phase.Default:
trueboolean
Whether to clean the folder during deletion (even if it contains existing files).Default:
falseboolean
Whether to create the folder recursively (including parent directories).Default:
trueReturns
string
Path to the created folder.
Examples
Create a directory using id as path
Create a directory with explicit path
Create a nested directory structure
Persist folder on deletion
CopyFile
Copies a file from a source location to a destination location.Properties
string
required
Source path of the file to copy.
string
required
Destination path where the file should be copied to.
boolean
Whether to overwrite the destination file if it already exists.Default:
trueReturns
string
Source path of the file.
string
Destination path of the file.
boolean
Whether the file was successfully copied.
number
Timestamp when the copy operation completed.