# std::experimental::filesystem::file_status::type

> C++ Atlas: `cppatlas.com/w/cpp/experimental/fs/file_status/type` | Source: https://en.cppreference.com/w/cpp/experimental/fs/file_status/type | Domain: Technical specifications

Accesses the file type information.

## Official Specification Summary (cppreference)

```cpp
file_type type() const; // (1) (filesystem TS)
void type( file_type type ); // (2) (filesystem TS)
```

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)

### Exceptions

`noexcept` specification:

`noexcept`

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/fs/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.