Method | Description | |
---|---|---|
Close ( ) : void |
Close channel.
|
|
CreateDirectory ( string path ) : void |
Create directory.
|
|
DownloadFile ( string remotePath, string localPath, Granados.Poderosa.FileTransfer.Cancellation cancellation, SFTPFileTransferProgressDelegate progressDelegate ) : void |
Download a file. Even if download failed, local file is not deleted. |
|
GetDirectoryEntries ( string directoryPath ) : Granados.Poderosa.SFTP.SFTPFileInfo[] |
Gets directory entries in the specified directory path.
|
|
GetFileInformations ( string path, bool lstat ) : Granados.Poderosa.SFTP.SFTPFileAttributes |
Get file informations.
|
|
GetRealPath ( string path ) : string |
Gets canonical path.
|
|
Init ( ) : void |
Initialize Send SSH_FXP_INIT and receive SSH_FXP_VERSION. |
|
OpenSFTPChannel ( ISSHConnection connection ) : |
Opens SFTP channel and creates a new instance.
|
|
RemoveDirectory ( string path ) : void |
Remove directory.
|
|
RemoveFile ( string path ) : void |
Remove file.
|
|
Rename ( string oldPath, string newPath ) : void |
Rename file or directory.
|
|
SetPermissions ( string path, int permissions ) : void |
Set permissions of the file or directory.
|
|
UploadFile ( string localPath, string remotePath, Granados.Poderosa.FileTransfer.Cancellation cancellation, SFTPFileTransferProgressDelegate progressDelegate ) : void |
Upload a file.
|
Method | Description | |
---|---|---|
CheckStatus ( ) : void | ||
CloseHandle ( uint requestId, byte handle ) : void | ||
OpenDir ( uint requestId, string directoryPath ) : byte[] | ||
OpenFile ( uint requestId, string filePath, uint flags ) : byte[] | ||
ReadDir ( uint requestId, byte handle ) : ICollection |
||
ReadFile ( uint requestId, byte handle, ulong offset, int length, byte buffer ) : int | ||
ReadFileAttributes ( Granados.IO.SSHDataReader dataReader ) : Granados.Poderosa.SFTP.SFTPFileAttributes | ||
ReadFileInfo ( Granados.IO.SSHDataReader dataReader, |
||
SFTPClient ( ISSHChannel channel, |
Constructor
|
|
Transmit ( |
||
TransmitPacketAndWaitForStatusOK ( uint requestId, |
||
WaitHandle ( |
||
WaitReady ( ) : bool |
Waits for channel status to be "READY". The current thread is blocked until the status comes to "READY" or "CLOSED".
|
|
WriteFile ( uint requestId, byte handle, ulong offset, byte buff, int length ) : void |
public CreateDirectory ( string path ) : void | ||
path | string | Directory path to create. |
return | void |
public DownloadFile ( string remotePath, string localPath, Granados.Poderosa.FileTransfer.Cancellation cancellation, SFTPFileTransferProgressDelegate progressDelegate ) : void | ||
remotePath | string | Remote file path to download. |
localPath | string | Local file path to save. |
cancellation | Granados.Poderosa.FileTransfer.Cancellation | An object to request the cancellation. Set null if the cancellation is not needed. |
progressDelegate | SFTPFileTransferProgressDelegate | Delegate to notify progress. Set null if notification is not needed. |
return | void |
public GetDirectoryEntries ( string directoryPath ) : Granados.Poderosa.SFTP.SFTPFileInfo[] | ||
directoryPath | string | Directory path. |
return | Granados.Poderosa.SFTP.SFTPFileInfo[] |
public GetFileInformations ( string path, bool lstat ) : Granados.Poderosa.SFTP.SFTPFileAttributes | ||
path | string | File path. |
lstat | bool | Specifies to use lstat. Symbolic link is not followed and informations about the symbolic link are returned. |
return | Granados.Poderosa.SFTP.SFTPFileAttributes |
public GetRealPath ( string path ) : string | ||
path | string | Path to be canonicalized. |
return | string |
public static OpenSFTPChannel ( ISSHConnection connection ) : |
||
connection | ISSHConnection | SSH2 connection object |
return |
public RemoveDirectory ( string path ) : void | ||
path | string | Directory path to remove. |
return | void |
public RemoveFile ( string path ) : void | ||
path | string | File path to remove. |
return | void |
public Rename ( string oldPath, string newPath ) : void | ||
oldPath | string | Old path. |
newPath | string | New path. |
return | void |
public SetPermissions ( string path, int permissions ) : void | ||
path | string | Path. |
permissions | int | Permissions to set. |
return | void |
public UploadFile ( string localPath, string remotePath, Granados.Poderosa.FileTransfer.Cancellation cancellation, SFTPFileTransferProgressDelegate progressDelegate ) : void | ||
localPath | string | Local file path to upload. |
remotePath | string | Remote file path to write. |
cancellation | Granados.Poderosa.FileTransfer.Cancellation | An object to request the cancellation. Set null if the cancellation is not needed. |
progressDelegate | SFTPFileTransferProgressDelegate | Delegate to notify progress. Set null if notification is not needed. |
return | void |