Get File Info
Get File Info fetches information about a file at the specified path. You can retrieve the following information: date created, date modified, owner, and when the file was last accessed. The information fetched is saved in the appropriate variables for further processing. Dates are returned in UTC (coordinated universal time) format as follows (yyyyMM-ddTHH:mm:ssZ).
Properties
File Operation Settings
-
Directory path Enter the path to the directory where the file is saved. You can specify an absolute or relative path. If a relative path is used, then the path relates to the Base Path variable.
-
File Name Enter the name of the file here that require information about.
Placeholders are not permitted. For further information please refer to the section on Invalid characters.
Other Properties that are the same in all action steps are described in the section on Common Properties. For reasons of clarity they are not shown here.
Inbound Variables
Directory path Enter the path to the directory where the file is saved. You can specify an absolute or relative path. If a relative path is used, then the path relates to the Base Path variable.
File Name Enter the name of the file here that require information about.
Outbound Variables
File Size The Get File Info.File Size variable provides the size of the file.
Creation Date The Get File Info.Creation Date variable provides the date the file was created (format: yyyyMM-ddTHH:mm:ssZ).
Modification Date The Get File Info.Modification Date variable provides the date of the last change to the file (format: yyyyMM-ddTHH:mm:ssZ).
Last Access Date The Get File Info.Last Access Date variable provides the last access date (format: yyyyMM-ddTHH:mm:ssZ).
File Owner The Get File Info.File Owner variable provides the name of the owner of the file.
File Name The Get File Info.File Name variable provides the name of the file.
Directory path The Get File Info.Directory Path variable provides the path that is used.
Wizard
-
Directory path Specify the path to the file that you require information about. You can create an absolute path or a path relative to the Base Path. The initial value is %STWS_BASEPATH%. Select an existing path. You can also insert variables from the Workflow in order to construct the path. To do so, click on the pin and select one of the available variables.
-
File name Enter the name here of the file that you require information about. You can also insert a variable from the Workflow as the File Name. To do so, click on the pin and select one of the available variables.