Share via


file_status Class

 

The latest version of this topic can be found at file_status Class.

Wraps a file_type.

Syntax

class file_status;  

file_status::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=

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

The defaulted member assignment operators behave as expected.

type

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

Gets or sets the file_type.

permissions

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.

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

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