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

◆ permissions() [1/2]

xtd::io::file_permissions xtd::io::file_system_info::permissions ( ) const

Gets the permissions for the current file or directory.

Returns
xtd::io::file_permissions of the current xtd::io::file_system_info.
Exceptions
xtd::io::file_not_found_exceptionThe specified file doesn't exist. Only thrown when setting the property value.
xtd::io::directory_not_found_exceptionThe specified path is invalid. For example, it's on an unmapped drive. Only thrown when setting the property value.
xtd::io::path_too_long_exceptionThe specified path, file name, or both exceed the system-defined maximum length.
xtd::argument_exceptionThe specified path, file name, or both exceed the system-defined maximum length.
xtd::io::io_exceptionxtd::io::file_system_info::refresh() cannot initialize the data.