# std::experimental::filesystem::recursive_directory_iterator::options

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

Returns the options that affect the directory iteration. The options can only be supplied when constructing the directory iterator.

## Official Specification Summary (cppreference)

```cpp
directory_options options() const; // (filesystem TS)
```

Returns the options that affect the directory iteration. The options can only be supplied when constructing the directory iterator.

If the options argument was not supplied, returns `options::none`.

### Parameters

(none)

### Return value

The effective options that affect the directory iteration.

### Exceptions

Throws nothing.

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