# std::filesystem::file_status::type

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

Accesses the file type information.

## Official Specification Summary (cppreference)

```cpp
std::filesystem::file_type type() const noexcept; // (1) (since C++17)
void type( std::filesystem::file_type type ) noexcept; // (2) (since C++17)
```

Accesses the file type information.

1) Returns file type information.

2) Sets file type to `type`.

### Parameters

- `type` - file type to set to

### Return value

1) File type information.

2) (none)

### Example

> Note: This section is incomplete Reason: no example

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