Ftpgetfile()
Downloads the remote file to the local file here
Usage
BOOLEAN = Ftpgetfile(
ftpdata,
remotefile,
localfile,
failifexists,
transfermode,
asciiextensionlist,
passive,
stoponerror
)
Argument | Summary |
---|---|
ftpdata | the connection object as defined from FtpOpen() |
remotefile | the remote file to download |
localfile | the local file to downlaod to |
failifexists | if the local file exists, then throw an exception. defautls to true [optional] |
transfermode | the transfer mode to use; AUTO, BINARY or ASCII. Defaults to AUTO [optional] |
asciiextensionlist | if transfer mode is AUTO then this is the extension list (;) of the files that are considered ascii [optional] |
passive | flag to determine if the transfer is in passive mode or not [optional] |
stoponerror | if something goes wrong, throw an exception. defaults to true [optional] |
Calling
Supports named-parameter calling allowing you to use the function like:
Ftpgetfile( ftpdata=?, remotefile=?, localfile=?, failifexists=?, transfermode=?, asciiextensionlist=?, passive=?, stoponerror=? );
Supports passing parameters as a structure using ArgumentCollection:
Ftpgetfile( ArgumentCollection={ ftpdata : ?, remotefile : ?, localfile : ?, failifexists : ?, transfermode : ?, asciiextensionlist : ?, passive : ?, stoponerror : ? } );