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