C# 클래스 R.Scheduler.Ftp.FtpLibrary

Implementation of IFtpLibrary using FtpWebRequest and FtpWebResponse classes.
상속: IFtpLibrary
파일 보기 프로젝트 열기: R-Suite/R.Scheduler 1 사용 예제들

공개 메소드들

메소드 설명
Connect ( string host, int serverPort, string userName, string password = null ) : void

Only builds Request Uri but does not create physical connection to ftp server.

Dispose ( ) : void

Not relevant to this implementation

GetFiles ( string remotePath, string localDir, string fileExtensions, System.TimeSpan cutOff ) : void

Get all the files with specified fileExtensions no older than cutOff timespan. Matched files are downloaded into localDir

비공개 메소드들

메소드 설명
GetDirItemsParsed ( IList dirItems ) : IEnumerable

Parse raw output from WebRequestMethods.Ftp.ListDirectoryDetails into DirItemStruct

GetDirectoryItems ( ) : IEnumerable

Get detailed listing of files on ftp server.

GetFile ( string filename, string target ) : void

Get specified file into target file

GuessFileListStyle ( IEnumerable recordList ) : DirItemListStyle

Decide Windows-Style, Unixs-Style or unknown

ParseFileStructFromUnixStyleRecord ( string record ) : DirItemStruct

Parse directory item from Unix-Style record. Not currently supported.

ParseFileStructFromWindowsStyleRecord ( string record ) : DirItemStruct

Parse directory item from Windows-Style record.

메소드 상세

Connect() 공개 메소드

Only builds Request Uri but does not create physical connection to ftp server.
public Connect ( string host, int serverPort, string userName, string password = null ) : void
host string
serverPort int not in use
userName string
password string
리턴 void

Dispose() 공개 메소드

Not relevant to this implementation
public Dispose ( ) : void
리턴 void

GetFiles() 공개 메소드

Get all the files with specified fileExtensions no older than cutOff timespan. Matched files are downloaded into localDir
public GetFiles ( string remotePath, string localDir, string fileExtensions, System.TimeSpan cutOff ) : void
remotePath string
localDir string
fileExtensions string
cutOff System.TimeSpan
리턴 void