The Filesystem adapter comes with operations to be used on the file itself.
Retrieving File Information
Using the status operation of the Filesystem adapter, you can get some general information on the file.
Name
Type
Direction
Description
name
String
in
Fully qualified file name of the file/directory you want to read, including the path.
size
Integer
out
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).
type
String
out
Type of accessed element (File or Directory).
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.
You can use the size of a file to determine its end position for usage with the write operation.
Renaming a File
Using the rename operation of the Filesystem adapter, you can rename a file.
Name
Type
Direction
Description
name
String
in
Fully qualified file name of the file you want to rename, including the path.
newName
String
in
New name you want to rename the file to. We recommend to provide a fully qualified file name (including the path).