Removing a Directory
This page explains the Filesystem Adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to Filesystem Adapter in the Designer guide.
Parameters of Action "remove" on Directories
Name | Type | Direction | Description |
---|---|---|---|
name | String | in | Fully qualified file name of the directory you want to remove, including the path. |
Defining a "remove" Action
To remove a directory with the file system adapter, you need to define a remove or a removeRecursively action on an action having the stereotype <<FileSystemAdapter>>. You can do this manually (refer to Figure: The Specification Dialog of the File System Adapter) or with the help of the E2E Action Wizard (see context menu of the action node).
Figure: Removing a Directory
The path of the directory you want to remove is defined in the component diagram. The link from the activity diagram to the physical information is established by an alias (in the present example: DirectoryAlias). See File System Components for more information on file system aliases.
For information on how to access a file or directory dynamically refer to Dynamic File System Access.
You can only remove an empty directory with action remove. In case the directory contains files or subfolders, use removeRecursively.
Related Pages: