Renci.SshNet.Sftp.SftpFile.SetPermissions C# (CSharp) Method

SetPermissions() public method

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

            UpdateStatus();
        }

Usage Example

コード例 #1
0
ファイル: SftpFileTest.cs プロジェクト: pecegit/sshnet
 public void SetPermissionsTest()
 {
     SftpSession sftpSession = null; // TODO: Initialize to an appropriate value
     string fullName = string.Empty; // TODO: Initialize to an appropriate value
     SftpFileAttributes attributes = null; // TODO: Initialize to an appropriate value
     SftpFile target = new SftpFile(sftpSession, fullName, attributes); // TODO: Initialize to an appropriate value
     short mode = 0; // TODO: Initialize to an appropriate value
     target.SetPermissions(mode);
     Assert.Inconclusive("A method that does not return a value cannot be verified.");
 }