Skip to content

Create Directory#

Screenshot showing a directory creation interface with an input field for directory path.

When activated, the create directory task creates a new directory. The directory path can be provided either by the input port or in the task settings.

Screenshot showing the Create Directory task interface with an input field labeled "path".

Inputs#

Name Description
path String Directory path
attempts Integer Number of attempts to perform this operation. Default is 1 attempt
sleepBetweenAttempts Integer Interval of time between the attempts. Default is 1000ms
Activate any Activate the task

Outputs#

Name Data Type Description
Success Boolean Triggered when the task is executed with success
Error Error Triggered when the task failed for some reason

Settings#

On the General tab, you have the usual settings and the following settings:

Name Data Type Values Default Description
Directory path String Directory path
Number of attempts Integer 1 Number of attempts to perform this operation.
Sleep between attempts Integer 1000 Interval of time between the attempts.

For the Directory path you can use tokens as represented below:

Available tokens:
  ${path} - Watched path
  ${archive} - Archive path
  ${temp} - Temporary directory of the user
  ${id} - DriverId ("\" chars replaced with "_")

Examples:
  ${path}\subdir
  ${temp}\files\${id}\Error
  c:\source\Processed

Screenshot showing a settings page with options to create "Rirector Settings" and reset.

Behavior#

In this task you choose a driver when dropping it into the workflow (if you have more than one driver associated with the controller).

Upon activation, will send a CreateDirectory command to the driver where it will try to create a new directory in the path location. If it fails, will retry attempts times, waiting sleepBetweenAttemptsmilliseconds each time.

When the operation is executed with success, both Success and result outputs emit their respective values. In case of the task , for some reason, is not able perform the operation, an Error is emitted.

Remarks#

This task will return success if the directory to create already exists.