FtpHelper
Contains helpers which allow to upload a whole folder/specific file into a FTP Server.
Uses Passive Mode
FTP and handles all files as binary (and not ASCII).
Assumes direct network connectivity to destination FTP server (not via a proxy).
Does not support FTPS and SFTP.
Nested types and modules
Type | Description |
FtpServerInfo |
Functions and values
Function or value | Description |
createAFolder server user pwd destPath
Signature: server:string -> user:string -> pwd:string -> destPath:string -> unit
|
Creates a matching folder in FTP folder, if not already present. Parameters
|
deleteAFile server user pwd destPath
Signature: server:string -> user:string -> pwd:string -> destPath:string -> unit
|
Deletes a single file from remote FTP folder. Parameters
|
deleteAFolder server user pwd destPath
Signature: server:string -> user:string -> pwd:string -> destPath:string -> unit
|
Deletes a single folder from remote FTP folder. Parameters
|
getFtpDirContents(...)
Signature: server:string -> user:string -> pwd:string -> dirPath:string -> string
|
Gets the contents/listing of files and folders in a given FTP server folder Parameters
|
getServerInfo(...)
Signature: serverNameIp:string -> user:string -> password:string -> ftpMethod:string -> FtpServerInfo
|
Gets a connection to the FTP server |
isFolderPresent server user pwd destPath
Signature: server:string -> user:string -> pwd:string -> destPath:string -> bool
|
Given a folder path, will check if that folder is present at a given root directory of a FTP server. Parameters
|
regexCheck fname ftpContents
Signature: fname:string -> ftpContents:string -> bool
|
Checks to see if the |
uploadAFile(...)
Signature: server:string -> user:string -> pwd:string -> destPath:string -> srcPath:string -> unit
|
Uploads a single file from local directory into remote FTP folder. Parameters
|
uploadAFolder(...)
Signature: server:string -> user:string -> pwd:string -> srcPath:string -> rootDir:string -> unit
|
Uploads a given local folder to a given root dir on a FTP server. Parameters
|