libstdc++: std::filesystem::file_status Class Reference

libstdc++

std::filesystem::file_status Class Reference
Filesystem

`#include <filesystem>`

## Public Member Functions
| file_status (const file_status &) noexcept=default
| file_status (file_status &&) noexcept=default
| file_status (file_type __ft, perms __prms=perms::unknown) noexcept
file_status & | operator= (const file_status &) noexcept=default
file_status & | operator= (file_status &&) noexcept=default
perms | permissions () const noexcept
void | permissions (perms __prms) noexcept
file_type | type () const noexcept
void | type (file_type __ft) noexcept

## Friends
bool | operator== (const file_status &, const file_status &) noexcept=default

## Detailed Description

Information about a file's type and permissions.

Since
  C++17

Definition at line 60 of file bits/fs_dir.h.

## Constructor & Destructor Documentation

## ◆ file_status() [1/2]

std::filesystem::file_status::file_status | ( |  | ) |
| inlinenoexcept

Definition at line 64 of file bits/fs_dir.h.

## ◆ file_status() [2/2]

std::filesystem::file_status::file_status | ( | file_type | __ft,
|  | perms | __prms = perms::unknown )
| inlineexplicitnoexcept

Definition at line 67 of file bits/fs_dir.h.

## Member Function Documentation

## ◆ permissions() [1/2]

perms std::filesystem::file_status::permissions | ( |  | ) | const
| inlinenoexcept

Definition at line 79 of file bits/fs_dir.h.

## ◆ permissions() [2/2]

void std::filesystem::file_status::permissions | ( | perms | __prms | ) |
| inlinenoexcept

Definition at line 83 of file bits/fs_dir.h.

## ◆ type() [1/2]

file_type std::filesystem::file_status::type | ( |  | ) | const
| inlinenoexcept

Definition at line 78 of file bits/fs_dir.h.

## ◆ type() [2/2]

void std::filesystem::file_status::type | ( | file_type | __ft | ) |
| inlinenoexcept

Definition at line 82 of file bits/fs_dir.h.

The documentation for this class was generated from the following file:

- bits/fs_dir.h