Exemple #1
0
        internal static FilePermissions CreateReadOnlyFromText(string text)
        {
            FilePermissions result = new FilePermissions();

            result.Numeric   = TextToNumeric(text);
            result._readOnly = true;
            return(result);
        }
Exemple #2
0
 internal static FilePermissions CreateReadOnlyFromText(string text)
 {
     FilePermissions result = new FilePermissions();
     result.Numeric = TextToNumeric(text);
     result._readOnly = true;
     return result;
 }
 public TransferOptions SetupTransferOptions()
 {
     var transferOptions = new TransferOptions { TransferMode = TransferMode.Binary };
     var permissions = new FilePermissions { Octal = "644" };
     transferOptions.FilePermissions = permissions;
     return transferOptions;
 }