C# Class LitDev.LDftp

Exibir arquivo Open project: litdev1/LitDev

Public Methods

Method Description
Delete ( Primitive remoteFile, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive

Delete a file by ftp.

Download ( Primitive localFile, Primitive remoteFile, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive

Download a file by ftp.

ListFiles ( Primitive remoteFolder, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive

Get a remote folder listing by ftp (non async only).

Upload ( Primitive localFile, Primitive remoteFile, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive

Upload a file by ftp.

Private Methods

Method Description
DoDelete ( Object obj ) : void
DoDownload ( Object obj ) : void
DoUpload ( Object obj ) : void

Method Details

Delete() public static method

Delete a file by ftp.
public static Delete ( Primitive remoteFile, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive
remoteFile Primitive The full path (on server) to the remote file to delete.
ftpServerIP Primitive The ftp server address (or IP).
ftpUserID Primitive The user ID.
ftpPassword Primitive The user password.
return Primitive

Download() public static method

Download a file by ftp.
public static Download ( Primitive localFile, Primitive remoteFile, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive
localFile Primitive The full path to the local file to download.
remoteFile Primitive The full path (on server) to the remote file to download.
ftpServerIP Primitive The ftp server address (or IP).
ftpUserID Primitive The user ID.
ftpPassword Primitive The user password.
return Primitive

ListFiles() public static method

Get a remote folder listing by ftp (non async only).
public static ListFiles ( Primitive remoteFolder, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive
remoteFolder Primitive The full path (on server) to the remote folder to list.
ftpServerIP Primitive The ftp server address (or IP).
ftpUserID Primitive The user ID.
ftpPassword Primitive The user password.
return Primitive

Upload() public static method

Upload a file by ftp.
public static Upload ( Primitive localFile, Primitive remoteFile, Primitive ftpServerIP, Primitive ftpUserID, Primitive ftpPassword ) : Primitive
localFile Primitive The full path to the local file to upload.
remoteFile Primitive The full path (on server) to the remote file to upload.
ftpServerIP Primitive The ftp server address (or IP).
ftpUserID Primitive The user ID.
ftpPassword Primitive The user password.
return Primitive