Workspace 6.21.5
GetFile

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.

  • Default label: "Get file"
  • Member of plug-in: Built-in
  • Catalogue path: Web Services
Inputs:
SourceQStringThe location of the source file. This could be a URL or a relative / absolute file path.
DescriptionQStringDescription 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.
TargetQStringIntended destination location of the file. If no target is specified, the file will be downloaded to a temporary file.
Translate line endingsboolTranslate any line endings in the file to the line endings supported by the platform on which the operation is executing.
Log infoboolIf enabled, the operation will print to the log as it works to retrieve the file.
Log errorsboolIf 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:
FilenameQString

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.