facftdownload
facftdownload |
Purpose
Synopsis
procedure facftdownload(remote_path:string, local_file:string)
Arguments
remote_path
|
The path of the remote file to download,
e.g.
"/MyFolder/MyFile.txt"
|
local_file
|
The filename of the local file to which to write the downloaded data.
|
Example
facftdownload("/MyFolder/MyFile.txt","MyFile.txt")
Further information
1. The local filename can reference an IO driver in the usual Mosel fashion,
e.g.
"mmsystem.text:MyFileContent"
2. If the remote file does not exist, the package will raise an IO error.
3. If a network error occurs during file download, the package will raise an IO error. Note that in this case, an incomplete file data may have been written to
local_file.
4. When used from a DMP component with preconfigured FAC File Transfer Service credentials, this function will automatically try to login to the FAC File Transfer Service if you are not already logged in.