FTP File Info
FTP File Info returns metadata about a remote file through an FTP Connection resource, without reading its contents.
Use it to check whether a file exists before reading it, or to test its size or modified
time. The exists output is false rather than an error when the file is not there.
Unlike the other FTP activities it has no Advanced tab, so no retry settings.
The activity has three tabs: Configuration, Input, and Output.
Configuration
| Field | Required | Description |
|---|---|---|
| Name | Required | Name of the step, unique within this workflow. |
| Description | Optional | Describe the purpose of this step. |
| FTP Connection | Optional | Resource to connect to the FTP or FTPS server. |
| FTP Auth Context | Optional | Authorization context used for the FTP connection. |
| Directory | Optional | Remote directory the file is in. |
| File Path | Optional | Path within the working directory. |
| File Name | Optional | Name of the file to inspect. |
Input
| Field | Required | Description |
|---|---|---|
| Inputs | Optional | Runtime overrides of the path fields. |
Output
The activity returns a FileInfoOutput object.
| Field | Data Type | Description |
|---|---|---|
| exists | Boolean | Whether the file exists. |
| isDirectory | Boolean | Whether the path is a directory rather than a file. |
| fileSize | Integer | Size of the file. |
| fileName | String | Name of the file. |
| filePath | String | Path of the file. |
| createdAt | String | When the file was created. |
| modifiedAt | String | When the file was last modified. |