Folder Operations

The automation tools modules for folder operations can copy, delete, create, or verify that folders exist.

TBox Create Folder

Creates folder in a specific location.

Value

Description

Path

Path to the folder you want to create.

Overwrite

By default, Tosca Cloud doesn't overwrite existing folders. If you want to overwrite the existing folder, set the value to True.

TBox Copy Folder

Copies all the contents of a folder you specify to a specified destination. This includes all files and subdirectories in that folder.

Value

Description

Source Path

Path to the folder that contains the content you want to copy to another location.

Target Path

Path to the destination folder to which you want to copy the contents.

Note the following:

  • If you specify a path that doesn't exist at runtime, Tosca Cloud creates it for you.

  • If you specify a path that already contains files or folders, Tosca Cloud  will still copy any new content to that folder. However, if there are matching file and folder names, the action that Tosca Cloud performs depends on what you specify in Overwrite.

Overwrite

By default, Tosca Cloud doesn't overwrite existing files or folders. To overwrite matching contents of the Target Path folder with the Source Path folder, set this value to True.

TBox Delete Folder

Deletes a folder. If the system can't locate the folder, the run result shows the following description: Folder <folder name> does not exist. The test result is positive.

Value

Description

Path

Path of the folder you want to delete.

Recursive

By default, Tosca Cloud only deletes empty folders. If you want to delete a folder that has content, set the value to True.

TBox Folder Existence

Verifies whether a folder exists in a specific directory.

Value

Description

Path

Path to the folder whose existence you want to verify.