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.0

Create directory

Creates all the directories at specified path.

Parameters

Parameter

Description

Path

The path to create. Allow subdirectories on path will also be created if they do not exist.

Allow Everyone to have full control over directory

If set to True, all users have full control over directory. If set to False, only the user the Connector is running as can access the directory. Default True.

Output

Simple value containing the path to the newly created directory.

Since

6.0

Delete directory

Deletes directory at provided path. Directory must be empty unless 'Also delete all subdirectories (and files)' is true.

Parameters

Parameter

Description

Path

The path to delete.

Also delete all subdirectories (and files)

If set to True, all files and subdirectories will be deleted. If set to False, the directory must be empty in order to delete it.

Output

Simple value,'True' if directory was successfully deleted. 'False' otherwise.

Since

6.0

Delete files in directory

Deletes all files in directory matching specified pattern.

Parameters

Parameter

Description

Path

The path to the directory to delete files from. Path can be UNC path or local file path.

Search pattern

Pattern to match files against. Supports wildcards * and ? but not regular expressions. Default value "*".

Output

Simple value, number of files deleted.

Since

6.3

Get all subdirectories of directory (full path)

Gets the full path of all subdirectories of given directory.

Parameters

Parameter

Description

Path

The path to get file names from. Path can be UNC path or local file path.

Search pattern

Pattern to match directories against. Supports wildcards * and ? but not regular expressions. Default value "*".

Also get directories in subdirectories

Specifies whether to also include directories in subdirectories of Path. Default value False.

Output

Table with column 'value' where each row is a full path to directory in given directory.

Since

6.0

Get directory modification times

Gets a record containing directory modification times.

Parameters

Parameter

Description

Path

The path to get modification times from.

As UTC

True to get the modification times in UTC

Output

Record with members 'CreationTime', 'LastWriteTime' and 'LastAccessTime'.

Since

6.0

Get files in directory (full path)

Gets the full path of all files in given directory.

Parameters

Parameter

Description

Path

The path to get file names from. Path can be UNC path or local file path.

Search pattern

Pattern to match files against. Supports wildcards * and ? but not regular expressions. Default value "*".

Also get files in subdirectories

Specifies whether to also include files in subdirectories of Path. Default value False.

Output

Table with column 'value' where each row is a full path to file in given directory.

Since

6.0

Get name of all subdirectories of directory

Gets the names of all directories in given directory.

Parameters

Parameter

Description

Path

The path to get directory names from. Path can be UNC path or local file path.

Search pattern

Pattern to match directories against. Supports wildcards * and ? but not regular expressions.

Output

Table with column 'value' where each row is the name of a directory in given directory.

Since

6.0

Get name of files in directory

Gets the names (including extension) of all files in given directory.

Parameters

Parameter

Description

Path

The path to get file names from. Path can be UNC path or local file path.

Search pattern

Pattern to match files against. Supports wildcards * and ? but not regular expressions.

Output

Table with column 'value' where each row is the name of a file in given directory.

Since

6.0

Move directory

Moves a directory to a new location.

Parameters

Parameter

Description

Source path

The path to directory to move. Path can be UNC path or local file path.

Destination path

The path to directory to move. Path can be UNC path or local file path.

Overwrite destination directory if it exists

If set to True and destination path already exists, it is overwritten. If set to false and destination path already exists, no move operation is done.

Output

Simple value, 'True' if directory was successfully moved. 'False' otherwise.

Since

6.0

Last updated