file_status Class

 

For the latest documentation on Visual Studio 2017, see Visual Studio 2017 Documentation.

Wraps a file_type.

class file_status;  

explicit file_status(file_type ftype = file_type::none, perms mask = perms::unknown) noexcept;file_status(const file_status&) noexcept = default;file_status(file_status&&) noexcept = default;  

file_status& operator=(const file_status&) noexcept = default;  
file_status& operator=(file_status&&) nexcept = default;  

The defaulted member assignment operators behave as expected.

file_type type() const noexcept  
void type(file_type _Ftype) noexcept  

Gets or sets the file_type.

perms permissions() const noexcept  
void permissions(perms_Prms) noexcept   

Gets or sets the file permissions.

Use the setter to make a file readonly or remove the readonly attribute.

Header: filesystem

Namespace: std::tr2::sys

Header Files Reference
path Class (C++ Standard Template Library)
<filesystem>

Show: