Retrieving Directory Information
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 "status" on a Directory
You need to define all of the following output objects with exactly the same names.
Name | Type | Direction | Description |
---|---|---|---|
name | String | in | Fully qualified file name of the file/directory you want to read, including the path. |
type | String | out | Type of accessed element (File or Directory). |
size | Integer | out | Size of the file in Bytes. |
accessTime | DateTime | out | Timestamp when the file/directory was accessed for the last time. |
creationTime | DateTime | out | Timestamp when the file/directory was created. |
modificationTime | DateTime | out | Timestamp when the file/directory was modified for the last time. |
Defining a "status" Action on a Directory
To retrieve information about a directory with the file system adapter, you need to define a status 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 Action Wizard (see context menu of the action node).
The principle is the same as retrieving file information (refer to Retrieving File Information).
Related Pages: