C# Class CdnLink.FtpBox

Inheritance: ICdnFtpBox
显示文件 Open project: cardeliverynetwork/openapi.net Class Usage Examples

Private Properties

Property Type Description
GetFtpRequest System.Net.FtpWebRequest

Public Methods

Method Description
DeleteFile ( string filename ) : void

Deletes the file.

FtpBox ( string host, string root, string user, string pass ) : System

Initializes a new instance of the FtpBox class.

GetFileContents ( string filename ) : string

Gets the file contents.

GetFileList ( ) : List

Gets the file list.

Private Methods

Method Description
GetFtpRequest ( string method, string filename = null ) : FtpWebRequest

Method Details

DeleteFile() public method

Deletes the file.
public DeleteFile ( string filename ) : void
filename string Name of the file.
return void

FtpBox() public method

Initializes a new instance of the FtpBox class.
public FtpBox ( string host, string root, string user, string pass ) : System
host string The ftp host.
root string The ftp directory.
user string The ftp user.
pass string The ftp pass.
return System

GetFileContents() public method

Gets the file contents.
public GetFileContents ( string filename ) : string
filename string Name of the file.
return string

GetFileList() public method

Gets the file list.
public GetFileList ( ) : List
return List