Represents a set of access permissions for a file. Not all permission sets will be supported on all platforms.
The binary representation of this enum is defined to be same representation as the permission bits of a unix st_mode field. File::Permissions can also be compared to its underlying bitset, for example File::Permissions::All == 0o777 will always be true.
On windows, only the OwnerWrite bit is effective. All file permissions will either be 0o444 for read-only files or 0o666 for read-write files. Directories are always mode 0o555 for read-only or 0o777.
1_i16 2_i16 4_i16 7_i16 8_i16 16_i16 32_i16 56_i16 64_i16 128_i16 256_i16 448_i16 0_i16 511_i16 Returns true if this enum value contains GroupAll
Returns true if this enum value contains GroupExecute
Returns true if this enum value contains GroupRead
Returns true if this enum value contains GroupWrite
Returns true if this enum value contains OtherAll
Returns true if this enum value contains OtherExecute
Returns true if this enum value contains OtherRead
Returns true if this enum value contains OtherWrite
Returns true if this enum value contains OwnerAll
Returns true if this enum value contains OwnerExecute
Returns true if this enum value contains OwnerRead
Returns true if this enum value contains OwnerWrite
Appends a String representation of this enum member to the given io.
Enum
Enum
Enum
Enum
Comparable(Enum)
Value
Object
Object
Object
Returns true if this enum value contains GroupExecute
Returns true if this enum value contains GroupWrite
Returns true if this enum value contains OtherExecute
Returns true if this enum value contains OtherWrite
Returns true if this enum value contains OwnerExecute
Returns true if this enum value contains OwnerWrite
© 2012–2026 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/1.19.0/File/Permissions.html