Workspace 6.21.5
|
Retrieves a file from a possibly remote location, such as a HTTP or FTP data source. If the file is remote and no target is specified, the operation will download it to a temporary location. If the operation fails to retrieve the file, it will cause the Workspace to stop executing.
Inputs: | |||
---|---|---|---|
Source | QString | The location of the source file. This could be a URL or a relative / absolute file path. | |
Description | QString | Description of what the file is. This is used when provenance execution is enabled to store with the source URL in the provenance record and report. | |
Target | QString | Intended destination location of the file. If no target is specified, the file will be downloaded to a temporary file. | |
Translate line endings | bool | Translate any line endings in the file to the line endings supported by the platform on which the operation is executing. | |
Log info | bool | If enabled, the operation will print to the log as it works to retrieve the file. | |
Log errors | bool | If enabled, the operation will log any errors it encountered when attempting to retrieve the file. | |
Timeout (msec) | int | Requests longer than this duration will be terminated. | |
Outputs: | |||
Filename | QString | Path to the downloaded copy of the file. Pass this to other operations (such as FileIO operations) to read the file into Workspace if required. |