file_status Class
Visual Studio 2015
The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.
The latest version of this topic can be found at file_status Class.
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: