You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

On this Page:

Related Pages:

Parameters of Action "status" on a Directory

You need to define all of the following output objects with exactly the same names.

NameTypeDirectionDescription
nameStringin

Fully qualified file name of the file/directory you want to read, including the path.

When using the Windows style with backward slashes "\" you have to be aware that you have escape this character. The escape character is also the "\".
To avoid this, use forward slashes with Windows as well.

typeStringoutType of accessed element (File or Directory).
sizeIntegerout

Size of the file in Bytes.

size is meaningless for directories, as it is not the combined size of all contained files and subfolders, but rather some constant defined by the operating system (e.g. 0 or 4096).

accessTimeDateTimeoutTimestamp when the file/directory was accessed for the last time.
creationTimeDateTimeoutTimestamp when the file/directory was created.
modificationTimeDateTimeoutTimestamp 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).

  • No labels