- value
- The octal representation of a Mono.Unix.Native.FilePermissions value.
The converted Mono.Unix.Native.FilePermissions.
This method makes it easier to create a Mono.Unix.Native.FilePermissions value, allowing the use of common octal permission notation.
C# Example
using System;
using Mono.Unix.Native;
class Test
{
public static void Main(string[] args)
{
// these two statements are equivalent.
FilePermissions simple = NativeConvert.FromOctalPermissionString ("0644");
FilePermissions annoying =
FilePermissions.S_IRUSR | FilePermissions.S_IWUSR |
FilePermissions.S_IRGRP |
FilePermissions.S_IROTH;
}
}