메소드 | 설명 | |
---|---|---|
AppendFile ( string remoteFileName ) : |
||
AppendFile ( string localFileName, string remoteFileName ) : ulong |
AppendFile overload to easily transfer a file from local to remote
|
|
AppendFile ( string localFileName, string remoteFileName, FileTransferCallback transferCallback ) : ulong |
AppendFile overload to easily transfer a file from local to remote
|
|
ChangeToUpperDir ( ) : void |
Changes the remote directory to the parent directory.
|
|
Close ( ) : void |
Closes the current connection, freeing resources.
|
|
Connect ( string hostname ) : string |
Anonymous authentication
|
|
Connect ( string hostname, EsslSupportMode sslSupportMode ) : string |
Anonymous authentication
|
|
Connect ( string hostname, |
||
Connect ( string hostname, |
||
Connect ( string hostname, |
||
Connect ( string hostname, int port, |
Connects to a FTP server using the provided parameters. The default representation tipe is set to Binary. The text encoding is set to UTF8, if supported by the server via the FEAT command.
|
|
Connect ( string hostname, int port, |
Connects to a FTP server using the provided parameters. The default representation tipe is set to Binary. The text encoding is set to UTF8, if supported by the server via the FEAT command.
|
|
Connect ( string hostname, int port, |
Connects to a FTP server using the provided parameters. The default representation tipe is set to Binary. The text encoding is set to UTF8, if supported by the server via the FEAT command.
|
|
Connect ( string hostname, int port, |
||
DeleteFile ( string remoteFileName ) : void |
Deletes the given remote file.
|
|
Dispose ( ) : void | ||
GetCurrentDirectory ( ) : string | ||
GetDirectoryList ( ) : IList |
||
GetDirectoryList ( string remoteDirName ) : IList |
Returns a list of the contents form the given directory. A parsing is performed on the data returned fronm the LIST command. Please use GetShortDirectoryList(string) or GetDirectoryListUnparsed(string) in case of parsing errors, as the contents returned from FTP servers may differ from the common DOS and UNIX formats adopted here. |
|
GetDirectoryListUnparsed ( ) : string | ||
GetDirectoryListUnparsed ( string remoteDirName ) : string |
returns the given directory list data as returned from the server, without parsing its contents.
|
|
GetFeatures ( ) : IList |
Features returned from the FEAT command
|
|
GetFile ( string remoteFileName ) : |
Retrieves the given file from the server. A FtpStream is returned, to be read until the end of file. See the GetFile(string, string) overload to easily save the stream to a local file.
|
|
GetFile ( string remoteFileName, string localFileName ) : ulong |
GetFile overload to easily transfer a file from remote to local
|
|
GetFile ( string remoteFileName, string localFileName, FileTransferCallback transferCallback ) : ulong |
GetFile overload to easily transfer a file from remote to local
|
|
GetFileModificationTime ( string remoteFileName ) : DateTime? |
Returns the modification time of the given remote file or
|
|
GetFileTransferSize ( string remoteFileName ) : ulong? |
Remote transfer file size returned by the SIZE command.
|
|
GetFiles ( string localDirectoryName ) : void |
Transfers all files from the current remote directory without recursion
|
|
GetFiles ( string localDirectoryName, bool recursive ) : void |
Transfers all files from the current remote directory. Optionally recursive
|
|
GetFiles ( string localDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive ) : void |
Transfers all files, matching the given pattern, from the current remote directory. Optionally recursive
|
|
GetFiles ( string remoteDirectoryName, string localDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive, FileTransferCallback transferCallback ) : void |
Transfers all files, matching the given pattern, from the given remote directory. Optionally recursive
|
|
GetShortDirectoryList ( ) : IList |
||
GetShortDirectoryList ( string remoteDirName ) : IList |
Returns an array of file names and directories contained in the given directory. Please use GetShortDirectoryList(string) or GetDirectoryListUnparsed(string) for more detailed directory information.
|
|
GetSystem ( ) : string |
Returns some remote system information, as returned from the SYST command.
|
|
MakeDir ( string remoteDirName, bool recursive = false ) : void |
Creates the given remote directory.
|
|
PopCurrentDirectory ( ) : string |
Restores the current directory. For details please see PushCurrentDirectory. Throws an exception if the stack is empty.
|
|
PushCurrentDirectory ( ) : string |
Pushes the current remote directory on a stack, in order to easily restore it later calling PopCurrentDirectory.
|
|
PutFile ( string remoteFileName ) : |
Stores a remote file, returning a FtpStream to be used for writing the file contents. Call FtpStream.Close on the stream once done. See the PutFile(string, string) overload to easily transfer the contents of a local file.
|
|
PutFile ( string localFileName, string remoteFileName ) : ulong |
PutFile overload to easily transfer a file from local to remote
|
|
PutFile ( string localFileName, string remoteFileName, FileTransferCallback transferCallback ) : ulong |
PutFile overload to easily transfer a file from local to remote
|
|
PutFiles ( string localDirectoryName ) : void |
Transfers all files to the current remote directory without recursion
|
|
PutFiles ( string localDirectoryName, bool recursive ) : void |
Transfers all files to the current remote directory. Optionally recursive
|
|
PutFiles ( string localDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive ) : void |
Transfers all files, matching the given pattern, to the current remote directory. Optionally recursive
|
|
PutFiles ( string localDirectoryName, string remoteDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive, FileTransferCallback transferCallback ) : void |
|
|
PutUniqueFile ( string &remoteFileName ) : FtpStream | ||
PutUniqueFile ( string localFileName, string &remoteFileName ) : ulong |
PutUniqueFile overload to easily transfer a file from local to remote
|
|
PutUniqueFile ( string localFileName, string &remoteFileName, FileTransferCallback transferCallback ) : ulong |
PutUniqueFile overload to easily transfer a file from local to remote.
|
|
RemoveDir ( string remoteDirName ) : void |
Removes the given remote directory.
|
|
RenameFile ( string remoteFileNameFrom, string remoteFileNameTo ) : void |
Renames the given remote file.
|
|
SendCustomCommand ( string command ) : FtpReply |
Sends the given FTP command text to the server. In case of return codes >= 400 an exception is thrown. |
|
SetCurrentDirectory ( string remoteDirName ) : void |
Changes the remote current directory.
|
|
SetLanguage ( string ietfLanguageTag ) : void |
Set the language used by the server during the current connection. Please check the features returned by GetFeatues for a list of available languages supported by the server.
|
|
SetTextEncoding ( ETextEncoding textEncoding ) : void |
Set the given text encoding.
|
|
SetTransferMode ( ETransferMode transferMode ) : void |
Set the representation type according to the given parameter
|
|
StartKeepAlive ( ) : void |
Issues NOOP commands periodically in a separated thread
|
|
StopKeepAlive ( ) : void |
Stops the keep alive thread
|
메소드 | 설명 | |
---|---|---|
AppeCmd ( string fileName ) : void | ||
AuthCmd ( EAuthMechanism authMech ) : void | ||
CallTransferCallback ( FileTransferCallback transferCallback, ETransferActions transferAction, string localObjectName, string remoteObjectName, ulong fileTransmittedBytes, ulong fileTransferSize ) : void | ||
CccCmd ( ) : void | ||
CdupCmd ( ) : void | ||
CheckCommandInjection ( string command ) : void |
Basic injection check
|
|
CheckConnection ( ) : void | ||
CheckFeature ( string feature ) : bool | ||
CheckSslAlgorithmsStrength ( |
||
CheckSymLinks ( string remoteDirectoryName, IList |
Workaround needed because it is not possible to determine if a symlink is a directory or a file based on the UNIX style directory listing.
|
|
ClntCmd ( string name ) : void | ||
CloseCtrlConnection ( ) : void | ||
CloseDataConnection ( ) : void | ||
CombineRemotePath ( string path1, string path2 ) : string |
Works like Path.Combine(...), but without replacing the "/" separator with Path.DirectorySeparatorChar
|
|
CreateSSlStream ( Stream s, bool leaveInnerStreamOpen ) : |
||
CwdCmd ( string dirName ) : void | ||
DeleCmd ( string fileName ) : void | ||
EndStreamCommand ( |
||
EnsureDir ( string remoteDirectoryName, FileTransferCallback transferCallback ) : void |
Check if the given directory exists and create it if it doesn't.
|
|
EpsvCmd ( ) : void | ||
FeatCmd ( ) : IList |
||
GetCtrlConnAddressFamily ( ) : AddressFamily | ||
GetDataStream ( ) : Stream | ||
GetDataString ( ) : string | ||
GetFeaturesFromServer ( ) : void | ||
GetFiles ( string remoteDirectoryName, string localDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive, FileTransferCallback transferCallback, IList |
||
GetRegexPattern ( string filePattern, EPatternStyle patternStyle ) : string | ||
GetReply ( ) : |
||
GetUniquePath ( IList |
||
HandleCmd ( string command ) : |
||
HandleCmd ( string command, bool waitForAnswer ) : |
||
KeepAliveThreadFunc ( ) : void | ||
LangCmd ( string ietfLanguageTag ) : void |
|
|
ListCmd ( string dirName ) : void | ||
MdtmCmd ( string fileName ) : System.DateTime | ||
MkdCmd ( string dirName ) : void | ||
NlstCmd ( string dirName ) : void | ||
NoopCmd ( ) : void | ||
OptsCmd ( string command ) : void | ||
ParseEpsvReply ( |
||
ParseFtpDateTime ( string message ) : System.DateTime | ||
ParsePasvReply ( |
||
ParsePwdReply ( |
||
ParseStouReply ( |
||
PassCmd ( string password ) : string |
|
|
PasvCmd ( ) : void | ||
PbszCmd ( uint maxSize ) : void | ||
PortCmd ( ) : void | ||
ProtCmd ( EProtCode protCode ) : void | ||
PwdCmd ( ) : string | ||
QuitCmd ( bool waitForAnswer ) : void | ||
RetrCmd ( string fileName ) : void | ||
RmdCmd ( string dirName ) : void | ||
RnfrCmd ( string fileOldName ) : void | ||
RntoCmd ( string fileNewName ) : void | ||
SSlCtrlChannelCheckRevertToClearText ( ) : void | ||
SendFile ( string localFileName, string remoteFileName, Stream s, FileTransferCallback transferCallback ) : ulong | ||
SetDataClientTimeout ( ) : void | ||
SetSslInfo ( SslStream sslStream ) : void |
Copies the protocol information form the given stream.
|
|
SetupActiveDataConnectionStep1 ( ) : int | ||
SetupActiveDataConnectionStep2 ( ) : void | ||
SetupCtrlConnection ( string hostname, int port, Encoding textEncoding ) : void | ||
SetupCtrlStreamReaderAndWriter ( Stream s ) : void | ||
SetupDataConnection ( ) : void | ||
SetupPassiveDataConnection ( IPEndPoint dataEndPoint ) : void | ||
SizeCmd ( string fileName ) : ulong | ||
SslControlChannelCheckExplicitEncryptionRequest ( EsslSupportMode sslSupportMode ) : void | ||
SslDataChannelCheckExplicitEncryptionRequest ( ) : void | ||
SslDataChannelImplicitEncryptionRequest ( ) : void | ||
StopActiveDataConnListener ( ) : void | ||
StorCmd ( string fileName ) : void | ||
StouCmd ( string &fileName ) : void | ||
SwitchCtrlToClearMode ( ) : void | ||
SwitchCtrlToSslMode ( ) : void | ||
SystCmd ( ) : string | ||
TypeCmd ( ERepType repType, string param2 ) : void | ||
UserCmd ( string userName ) : bool |
|
|
ValidateServerCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool |
public AppendFile ( string remoteFileName ) : |
||
remoteFileName | string | |
리턴 |
public AppendFile ( string localFileName, string remoteFileName ) : ulong | ||
localFileName | string | |
remoteFileName | string | |
리턴 | ulong |
public AppendFile ( string localFileName, string remoteFileName, FileTransferCallback transferCallback ) : ulong | ||
localFileName | string | |
remoteFileName | string | |
transferCallback | FileTransferCallback | |
리턴 | ulong |
public Connect ( string hostname, EsslSupportMode sslSupportMode ) : string | ||
hostname | string | |
sslSupportMode | EsslSupportMode | |
리턴 | string |
public Connect ( string hostname, |
||
hostname | string | |
credential | ||
리턴 | string |
public Connect ( string hostname, |
||
hostname | string | |
credential | ||
sslSupportMode | EsslSupportMode | |
리턴 | string |
public Connect ( string hostname, |
||
hostname | string | |
credential | ||
sslSupportMode | EsslSupportMode | |
userValidateServerCertificate | RemoteCertificateValidationCallback | |
리턴 | string |
public Connect ( string hostname, int port, |
||
hostname | string | |
port | int | |
credential | ||
sslSupportMode | EsslSupportMode | |
userValidateServerCertificate | RemoteCertificateValidationCallback | |
x509ClientCert | ||
sslMinKeyExchangeAlgStrength | int | |
sslMinCipherAlgStrength | int | |
sslMinHashAlgStrength | int | |
timeout | int | Connection timeout in ms. |
리턴 | string |
public Connect ( string hostname, int port, |
||
hostname | string | |
port | int | |
credential | ||
sslSupportMode | EsslSupportMode | |
userValidateServerCertificate | RemoteCertificateValidationCallback | |
x509ClientCert | ||
sslMinKeyExchangeAlgStrength | int | |
sslMinCipherAlgStrength | int | |
sslMinHashAlgStrength | int | |
timeout | int | Connection timeout in ms. |
useCtrlEndPointAddressForData | bool | |
리턴 | string |
public Connect ( string hostname, int port, |
||
hostname | string | |
port | int | |
credential | ||
sslSupportMode | EsslSupportMode | |
userValidateServerCertificate | RemoteCertificateValidationCallback | |
x509ClientCert | ||
sslMinKeyExchangeAlgStrength | int | |
sslMinCipherAlgStrength | int | |
sslMinHashAlgStrength | int | |
timeout | int | Connection timeout in ms. |
useCtrlEndPointAddressForData | bool | |
dataConnectionMode | EDataConnectionMode | Active or Passive data connection mode |
리턴 | string |
public Connect ( string hostname, int port, |
||
hostname | string | |
port | int | |
credential | ||
sslSupportMode | EsslSupportMode | |
timeout | int | |
리턴 | string |
public DeleteFile ( string remoteFileName ) : void | ||
remoteFileName | string | |
리턴 | void |
public GetDirectoryList ( string remoteDirName ) : IList |
||
remoteDirName | string | |
리턴 | IList |
public GetDirectoryListUnparsed ( string remoteDirName ) : string | ||
remoteDirName | string | |
리턴 | string |
public GetFile ( string remoteFileName ) : |
||
remoteFileName | string | |
리턴 |
public GetFile ( string remoteFileName, string localFileName ) : ulong | ||
remoteFileName | string | |
localFileName | string | |
리턴 | ulong |
public GetFile ( string remoteFileName, string localFileName, FileTransferCallback transferCallback ) : ulong | ||
remoteFileName | string | |
localFileName | string | |
transferCallback | FileTransferCallback | |
리턴 | ulong |
public GetFileModificationTime ( string remoteFileName ) : DateTime? | ||
remoteFileName | string | |
리턴 | DateTime? |
public GetFileTransferSize ( string remoteFileName ) : ulong? | ||
remoteFileName | string | |
리턴 | ulong? |
public GetFiles ( string localDirectoryName ) : void | ||
localDirectoryName | string | |
리턴 | void |
public GetFiles ( string localDirectoryName, bool recursive ) : void | ||
localDirectoryName | string | |
recursive | bool | |
리턴 | void |
public GetFiles ( string localDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive ) : void | ||
localDirectoryName | string | |
filePattern | string | |
patternStyle | EPatternStyle | |
recursive | bool | |
리턴 | void |
public GetFiles ( string remoteDirectoryName, string localDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive, FileTransferCallback transferCallback ) : void | ||
remoteDirectoryName | string | Absolute or relative remote path, null indicates the current directory |
localDirectoryName | string | Absolute local path |
filePattern | string | May be null to transfer all files |
patternStyle | EPatternStyle | |
recursive | bool | |
transferCallback | FileTransferCallback | |
리턴 | void |
public GetShortDirectoryList ( string remoteDirName ) : IList |
||
remoteDirName | string | |
리턴 | IList |
public MakeDir ( string remoteDirName, bool recursive = false ) : void | ||
remoteDirName | string | |
recursive | bool | |
리턴 | void |
public PutFile ( string remoteFileName ) : |
||
remoteFileName | string | |
리턴 |
public PutFile ( string localFileName, string remoteFileName ) : ulong | ||
localFileName | string | |
remoteFileName | string | |
리턴 | ulong |
public PutFile ( string localFileName, string remoteFileName, FileTransferCallback transferCallback ) : ulong | ||
localFileName | string | |
remoteFileName | string | |
transferCallback | FileTransferCallback | |
리턴 | ulong |
public PutFiles ( string localDirectoryName ) : void | ||
localDirectoryName | string | |
리턴 | void |
public PutFiles ( string localDirectoryName, bool recursive ) : void | ||
localDirectoryName | string | |
recursive | bool | |
리턴 | void |
public PutFiles ( string localDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive ) : void | ||
localDirectoryName | string | |
filePattern | string | |
patternStyle | EPatternStyle | |
recursive | bool | |
리턴 | void |
public PutFiles ( string localDirectoryName, string remoteDirectoryName, string filePattern, EPatternStyle patternStyle, bool recursive, FileTransferCallback transferCallback ) : void | ||
localDirectoryName | string | |
remoteDirectoryName | string | |
filePattern | string | |
patternStyle | EPatternStyle | |
recursive | bool | |
transferCallback | FileTransferCallback | |
리턴 | void |
public PutUniqueFile ( string &remoteFileName ) : FtpStream | ||
remoteFileName | string | |
리턴 | FtpStream |
public PutUniqueFile ( string localFileName, string &remoteFileName ) : ulong | ||
localFileName | string | |
remoteFileName | string | |
리턴 | ulong |
public PutUniqueFile ( string localFileName, string &remoteFileName, FileTransferCallback transferCallback ) : ulong | ||
localFileName | string | |
remoteFileName | string | |
transferCallback | FileTransferCallback | |
리턴 | ulong |
public RenameFile ( string remoteFileNameFrom, string remoteFileNameTo ) : void | ||
remoteFileNameFrom | string | |
remoteFileNameTo | string | |
리턴 | void |
public SendCustomCommand ( string command ) : FtpReply | ||
command | string | |
리턴 | FtpReply |
public SetCurrentDirectory ( string remoteDirName ) : void | ||
remoteDirName | string | |
리턴 | void |
public SetLanguage ( string ietfLanguageTag ) : void | ||
ietfLanguageTag | string | RFC 1766 language tag. |
리턴 | void |
public SetTextEncoding ( ETextEncoding textEncoding ) : void | ||
textEncoding | ETextEncoding | |
리턴 | void |
public SetTransferMode ( ETransferMode transferMode ) : void | ||
transferMode | ETransferMode | |
리턴 | void |