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

◆ permissions() [2/2]

xtd::io::file_system_info & xtd::io::file_system_info::permissions ( xtd::io::file_permissions  value)

Sets the permissions for the current file or directory.

Parameters
valuextd::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.
xtd::platform_not_supported_exceptionThe opration is not supported on the current operating system.