# std::filesystem::file_status

> C++ Atlas: `cppatlas.com/w/cpp/filesystem/file_status` | Source: https://en.cppreference.com/w/cpp/filesystem/file_status | Domain: Filesystem | Standards: C++17, C++20

Stores information about the type and permissions of a file.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <filesystem>
class file_status; // (since C++17)
```

Stores information about the type and permissions of a file.

### Member functions

- (constructor): constructs a `file_status` object (public member function)
- `operator=`: assigns contents (public member function)
- (destructor): implicit destructor (public member function)
- `type`: gets or sets the type of the file (public member function)
- `permissions`: gets or sets the permissions of the file (public member function)

### Non-member functions

- `operator==` (C++20): compares two `file_status` objects (function)

### See also

- [`status`](https://en.cppreference.com/w/cpp/filesystem/status) (C++17), [`symlink_status`](https://en.cppreference.com/w/cpp/filesystem/status) (C++17): determines file attributes determines file attributes, checking the symlink target (function)
- [`status`](https://en.cppreference.com/w/cpp/filesystem/directory_entry/status), [`symlink_status`](https://en.cppreference.com/w/cpp/filesystem/directory_entry/status): status of the file designated by this directory entry; status of the file/symlink designated by this directory entry (public member function of `std::filesystem::directory_entry`)

---
Attribution: content from https://en.cppreference.com/w/cpp/filesystem/file_status (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.