C# Класс Renci.SshNet.Sftp.SftpFile

Represents SFTP file information
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
SftpFile ( ISftpSession sftpSession, string fullName, SftpFileAttributes attributes ) : System

Initializes a new instance of the SftpFile class.

Описание методов

Delete() публичный Метод

Permanently deletes a file on remote machine.
public Delete ( ) : void
Результат void

MoveTo() публичный Метод

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.
Результат void

SetPermissions() публичный Метод

Sets file permissions.
public SetPermissions ( short mode ) : void
mode short The mode.
Результат void

ToString() публичный Метод

Returns a System.String that represents this instance.
public ToString ( ) : string
Результат string

UpdateStatus() публичный Метод

Updates file status on the server.
public UpdateStatus ( ) : void
Результат void