C# 클래스 Renci.SshNet.Sftp.SftpFile

Represents SFTP file information
파일 보기 프로젝트 열기: sshnet/SSH.NET 1 사용 예제들

공개 메소드들

메소드 설명
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