Renci.SshNet.SftpClient.ChangePermissions C# (CSharp) 메소드

ChangePermissions() 공개 메소드

Changes permissions of file(s) to specified mode.
is null. Client is not connected. Permission to change permission on the path(s) was denied by the remote host. -or- A SSH command was denied by the server. was not found on the remote host. A SSH error where is the message from the remote host. The method was called after the client was disposed.
public ChangePermissions ( string path, short mode ) : void
path string File(s) path, may match multiple files.
mode short The mode.
리턴 void
        public void ChangePermissions(string path, short mode)
        {
            var file = Get(path);
            file.SetPermissions(mode);
        }

Usage Example

예제 #1
0
파일: SftpClient.cs 프로젝트: zyfzgt/FTPbox
 public override void SetFilePermissions(SyncQueueItem i, short mode)
 {
     _sftpc.ChangePermissions(i.CommonPath, mode);
 }