Directory operations
Check if directory exists
Determains whether directory at specified path exists.
Parameters
Parameter
Description
Path
The path to check.
Output
Simple value,'True' if directory exists. 'False' otherwise.
Since
6.3
Create directory
Creates a directory at the SFTP server. It is not possible to create several levels of directories in one step. If you want to create the directory "./dirA/dirB", the directory "./dirA" must exist. Otherwise you have to do it in two steps; first creates directory "./dirA" and the second one created "./dirA/dirB".
Parameters
Parameter
Description
Remote path
Path to the directory to create.
Output
No output.
Since
6.3
Delete directory
Deletes specified directory. Note that the directory must be empty unless Recursive is set to true.
Parameters
Parameter
Description
Remote path
Path to directory to delete
Recursive
Specifies whether to also delete all files and subdirectories.
Output
No output.
Since
6.3
List directory
Lists all files and directories in a specified path.
Parameters
Parameter
Description
Remote path
Path to list.
Mask
Mask to use when filtering items in directory. Example "*.txt". Regular expressions can also be used by prefixing with "regex:", example "regex:[A|B].*" to list all files starting with "A" or "B"
Case sensitive
Specifies whether to ignore casing or not.
Include files
Specifies whether to include files in the listing.
Include directories
Specifies whether to include directories in the listing.
Recursive
Specifies whether to also search in subdirectories.
Output
A table consisting of records with the following structure:
Member
Description
Name
The name of the file or directory.
IsDirectory
True if the item is a directory, false if it is a file.
Size
The size, in bytes, of the item.
LastAccessTime
Last time item was accessed.
LastModifiedTime
Last time the item was modified.
CreationTime
Time of item creation.
Since
6.3
Last updated