The CopyDirectory component copies the content of a directory to another directory.



The CopyDirectory component exposes the Control In, Control Out, and Data In ports by default.

Port Description
ControlIn Must be connected to the Control Out port of one or more components.
ControlOut Can be connected to the Control In port of another component or the default end component.
Data In The CopyDirectory component exposes the following Data In ports by default:
sourceDirPath: specifies the location of the directory to copy (string).
destDirPath: specifies the location, including the name of the new directory (string).
Note:You cannot provide the path of an existing directory in the destFilePath Data In port.
overwrite:specifies if Intellibot can overwrite an existing file in the new directory, if the name of this existing file is the same as that of a copied file. By default, the Boolean data type value is
“False”. Therefore, the existing file in the destination directory is not overwritten. If you want
to overwrite the existing file, you can change the default Boolean value to “True”.


To edit the properties of the CopyDirectory component, in the Properties window, change the required property. You can edit the following properties.

Property Description
Search Search for the respective property.
Delay After Execution Specifies the wait time (in seconds) after the action is performed.
Delay Before Execution Specifies the wait time (in seconds) before the action is performed.


Let us consider an example.


To retrieve the path:

  1. In the Toolbox, expand Utilities and then expand Directory.
  2. Drag the CopyDirectory component and drop it on the Design surface.
  3. Double-click sourceDirPath box and enter the required path.
  4. Double-click destDirPath box and enter the required path.


    You can override the existing data source for both the sourceDirPath and the destDirPath Data In ports.
    To override the existing data source:

    • Right-click the required Data In port.
    • Click Override and change the data source.
      To learn more about overriding the data source of the data port, refer the Override section.

  5. To override the default Boolean value of the overwrite Data In port, if required:

    • Right-click the overwrite box.
    • Click Override.
      The PORT PROPERTIES dialog box is displayed.
    • In Read Data From, select Static.


    In Read Data From, you can select Connection or Variable instead of Static. To learn more about the Connection or Variable data source override options, refer the Override section.

    • In Static Value, click the drop-down arrow and select “True”.
    • Click OK.
      The Design surface displays the process flow.
  6. Connect all the control ports in the activity.

  7. In the toolbar, click Run.
    The contents of the source directory are copied to the destination directory.