FTP CommonUDF Library

Functions10 public, 2 private

Recursively delete the specified directory and its content. This function may throw exceptions.
publicvoidftpDirectoryDelete
Handle or credentials for the FTP connection.
requiredanyftpConnection
Directory on the remote machine to delete.
requiredstringdirectory
Downloads the specified directory and its content recursively. This function may throw exceptions.
publicqueryftpDirectoryDownload
Handle or credentials for the FTP connection.
requiredanyftpConnection
Directory on the remote machine to download from.
requiredstringdirectoryRemote
Directory on the local machine to download to.
requiredstringdirectoryLocal
structOPTIONS{}
Renames the specified directory. This function may throw exceptions.
publicvoidftpDirectoryRename
Handle or credentials for the FTP connection.
requiredanyftpConnection
Present name of the directory.
requiredstringdirectoryOld
Desired name of the directory.
requiredstringdirectoryNew
Uploads the specified directory and its content recursively. This function may throw exceptions.
publicqueryftpDirectoryUpload
Handle or credentials for the FTP connection.
requiredanyftpConnection
Directory on the local machine to copy from.
requiredstringdirectoryLocal
Directory on the remote machine to copy to.
requiredstringdirectoryRemote
structOPTIONS{}
Downloads the specified files. This function may throw exceptions.
publicqueryftpDownloadFiles
Handle or credentials for the FTP connection.
requiredanyftpConnection
Directory on the remote machine to download from.
requiredstringdirectoryRemote
Directory on the local machine to download to.
requiredstringdirectoryLocal
requiredarrayfiles
structOPTIONS{}
Lists all contents of the specified directory. This function may throw exceptions.
publicqueryftpListDirectory
requiredanyftpConnection
requiredstringremoteDir
booleanrecursefalse
structOPTIONS{}
optionin secondstimeout30
publicanyftpPrepareCredentials
requiredarray, struct, stringcredentials
publicstringftpFileRead
Handle or credentials for the FTP connection.
requiredanyftpConnection
File on the remote machine to read.
requiredstringremoteFile
structOPTIONS{}
publicbinaryftpFileReadBinary
Handle or credentials for the FTP connection.
requiredanyftpConnection
File on the remote machine to read.
requiredstringremoteFile
structOPTIONS{}
Uploads the specified files. This function may throw exceptions.
publicqueryftpUploadFiles
Handle or credentials for the FTP connection.
requiredanyftpConnection
Directory on the local machine to upload from.
requiredstringdirectoryLocal
Directory on the remote machine to upload to.
requiredstringdirectoryRemote
requiredarrayfiles
structOPTIONS{}