File System
Creates, copies, moves, and deletes local files and folders on the controller, or queries their information. Paths
can be written in either Windows or Linux form (for example, C:\Users\me\file or
/home/me/file). Both slashes and backslashes are accepted, and surrounding spaces and quotes are
removed automatically.
Commands
| Command | Description | Input fields | Output variables |
|---|---|---|---|
| Create Directory | Creates a new folder at the path. | Path (folder) | |
| Copy | Copies the file or folder at the source path to the target path. | Source Path, Target Path, Duplicate Handling | |
| Move | Moves the file or folder at the source path to the target path. | Source Path, Target Path, Duplicate Handling | |
| Delete | Deletes the file or folder at the path. | Path | |
| Rename | Renames the file or folder at the path. | Path, New Name | |
| Exists | Returns true if a file or folder exists at the path. | Path | Return Value (digital) |
| Is Empty | Returns true if the folder at the path is empty. | Path | Return Value (digital) |
| Is File | Returns true if the path is a file. | Path | Return Value (digital) |
| Is Directory | Returns true if the path is a folder. | Path (folder) | Return Value (digital) |
| Is Symbolic Link | Returns true if the path is a symbolic link. | Path | Return Value (digital) |
| File Info | Returns the size and last modification time of the file. | Path | File Size (number), Last Modified Time (text) |
| Parse Path | Splits the path into the parent path, file name, file name without extension, and extension. | Path | Parent Path, File Name, File Name (without extension), Extension (all text) |
| Home Directory | Returns the home directory of the user running the controller. | Home Directory (text) | |
| Temp Directory | Returns the temporary directory of the operating system. | Temp Directory (text) | |
| Data Directory | Returns the data directory of the controller. | Data Directory (text) |
Fields
Path
Enter the path of the target file or folder, or pick it in the browser. Create Directory and Is Directory open a folder browser; the other commands open a file browser.
Source Path, Target Path
Enter the path of the source file or folder and the path of the target folder. Displayed only when Command is Copy or Move.
Duplicate Handling
What happens when a file or folder with the same name already exists at the target path. Displayed only when Command is Copy or Move.
- None (default): Cancels the operation and raises an error.
- Overwrite: Overwrites with the source.
- Skip: Skips without overwriting.
- Update if Newer: Overwrites only when the source is newer.
New Name
Enter the new name. Displayed only when Command is Rename.
Output variables
The output variables in the table are displayed only when their command is selected, and each takes a variable of the type given in the table.