C# Class Renci.SshNet.Sftp.SftpFile

Represents SFTP file information
ファイルを表示 Open project: sshnet/SSH.NET Class Usage Examples

Public Methods

Method Description
Delete ( ) : void

Permanently deletes a file on remote machine.

MoveTo ( string destFileName ) : void

Moves a specified file to a new location on remote machine, providing the option to specify a new file name.

SetPermissions ( short mode ) : void

Sets file permissions.

ToString ( ) : string

Returns a System.String that represents this instance.

UpdateStatus ( ) : void

Updates file status on the server.

Private Methods

Method Description
SftpFile ( ISftpSession sftpSession, string fullName, SftpFileAttributes attributes ) : System

Initializes a new instance of the SftpFile class.

Method Details

Delete() public method

Permanently deletes a file on remote machine.
public Delete ( ) : void
return void

MoveTo() public method

Moves a specified file to a new location on remote machine, providing the option to specify a new file name.
is null.
public MoveTo ( string destFileName ) : void
destFileName string The path to move the file to, which can specify a different file name.
return void

SetPermissions() public method

Sets file permissions.
public SetPermissions ( short mode ) : void
mode short The mode.
return void

ToString() public method

Returns a System.String that represents this instance.
public ToString ( ) : string
return string

UpdateStatus() public method

Updates file status on the server.
public UpdateStatus ( ) : void
return void