xtd 0.2.0
Loading...
Searching...
No Matches

◆ file_permissions

enum class xtd::io::file_permissions
strong

Provides permissions for files and directories.

enum class file_permissions
file_permissions
Provides permissions for files and directories.
Definition file_permissions.h:24
Header
#include <xtd/io/file_permissions>
Namespace
xtd::io
Library
xtd.core
Enumerator
none 

No permission bits are set.

owner_read 

File owner has read permission.

owner_write 

File owner has write permission.

owner_execute 

File owner has execute/search permission.

owner_all 

File owner has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::owner_read | xtd::io::file_permissions::owner_write | xtd::io::file_permissions::owner_execute.

group_read 

The file's ueer group has read permission.

group_write 

The file's ueer group has write permission.

group_execute 

The file's ueer group has execute/search permission.

group_all 

The file's ueer group has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::group_read | xtd::io::file_permissions::group_write | xtd::io::file_permissions::group_execute.

others_read 

Other ueers has read permission.

others_write 

Other ueers has write permission.

others_execute 

Other ueers has execute/search permission.

others_all 

Other ueers has read, write and execute/search permission. Equivalent to xtd::io::file_permissions::others_read| xtd::io::file_permissions::others_write | xtd::io::file_permissions::others_execute.

all 

All users have read, write, and execute/search permissions. Equivalent to xtd::io::file_permissions::owner_all | xtd::io::file_permissions::group_all | xtd::io::file_permissions::others_all.

set_uid 

Set user ID to file owner user ID on execution.

set_gid 

Set group ID to file's user group ID on execution.

sticky_bit 

Implementation-defined meaning, but POSIX XSI specifies that when set on a directory, only file owners may delete files even if the directory is writeable to others (used with /tmp).

mask 

All valid permission bits. Equivalent to xtd::io::file_permissions::all | xtd::io::file_permissions::set_uid | xtd::io::file_permissions::set_gid | xtd::io::file_permissions::sticky_bit.

unknown 

Unknown permissions (e.g. when file or directory is created without permissions).