Skip to content

Latest commit

 

History

History
119 lines (79 loc) · 3.17 KB

file-status-class.md

File metadata and controls

119 lines (79 loc) · 3.17 KB
descriptiontitlems.datef1_keywordsms.assetidhelpviewer_keywords
Learn more about: file_status Class
file_status Class
09/10/2018
filesystem/std::experimental::filesystem::file_status
filesystem/std::experimental::filesystem::file_status::operator=
filesystem/std::experimental::filesystem::file_status::type
filesystem/std::experimental::filesystem::file_status::permissions
9781840e-ad22-44dd-ad79-0fabaa94bac4
std::experimental::filesystem::file_status
std::experimental::filesystem::file_status::operator=
std::experimental::filesystem::file_status::type
std::experimental::filesystem::file_status::permissions

file_status Class

Wraps a file_type and file perms.

Syntax

classfile_status;

Constructors

ConstructorDescription
file_statusConstructs a wrapper for file_type and file perms.

Member functions

Member functionDescription
typeGets or sets the file_type.
permissionsGets or sets the file permissions.

Operators

OperatorDescription
operator=The defaulted member assignment operators behave as expected.

Requirements

Header: <filesystem>

Namespace: std::experimental::filesystem, std::experimental::filesystem

file_status::file_status

Constructs a wrapper for file_type and file perms.

explicitfile_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() noexcept = default;

Parameters

ftype
Specified file_type, defaults to file_type::none.

mask
Specified file perms, defaults to perms::unknown.

file_status
The stored object.

file_status::operator=

The defaulted member assignment operators behave as expected.

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

Parameters

file_status
The file_status being copied into the file_status.

type

Gets or sets the file_type.

file_type type() constnoexcept void type(file_type ftype) noexcept

Parameters

ftype
Specified file_type.

permissions

Gets or sets the file permissions.

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

perms permissions() constnoexcept void permissions(perms mask) noexcept

Parameters

mask
Specified perms.

See also

Header Files Reference
path Class
<filesystem>

close