Get Started
File System
On this page
  1. Commands
  2. Fields
  3. Output variables

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

CommandDescriptionInput fieldsOutput variables
Create DirectoryCreates a new folder at the path.Path (folder)
CopyCopies the file or folder at the source path to the target path.Source Path, Target Path, Duplicate Handling
MoveMoves the file or folder at the source path to the target path.Source Path, Target Path, Duplicate Handling
DeleteDeletes the file or folder at the path.Path
RenameRenames the file or folder at the path.Path, New Name
ExistsReturns true if a file or folder exists at the path.PathReturn Value (digital)
Is EmptyReturns true if the folder at the path is empty.PathReturn Value (digital)
Is FileReturns true if the path is a file.PathReturn Value (digital)
Is DirectoryReturns true if the path is a folder.Path (folder)Return Value (digital)
Is Symbolic LinkReturns true if the path is a symbolic link.PathReturn Value (digital)
File InfoReturns the size and last modification time of the file.PathFile Size (number), Last Modified Time (text)
Parse PathSplits the path into the parent path, file name, file name without extension, and extension.PathParent Path, File Name, File Name (without extension), Extension (all text)
Home DirectoryReturns the home directory of the user running the controller.Home Directory (text)
Temp DirectoryReturns the temporary directory of the operating system.Temp Directory (text)
Data DirectoryReturns 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.