Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::filesystem::directory_options

This type represents available options that control the behavior of the directory_iterator and recursive_directory_iterator.

NotebookLM
Defined in header <experimental/filesystem>
enum class directory_options {
    none,
    follow_directory_symlink,
    skip_permission_denied
};
(filesystem TS)

This type represents available options that control the behavior of the directory_iterator and recursive_directory_iterator.

directory_options satisfies the requirements of BitmaskType (which means the bitwise operators operator&, operator|, operator^, operator~, operator&=, operator|=, and operator^= are defined for this type).

Member constants

Member constant Value Meaning
none ​0​ (Default) Skip directory symlinks, permission denied is error.
follow_directory_symlink 1 Follow rather than skip directory symlinks.
skip_permission_denied 2 Skip directories that would otherwise result in permission denied errors.

See also

constructs a directory iterator
(public member function of std::experimental::filesystem::directory_iterator)
constructs a recursive directory iterator
(public member function of std::experimental::filesystem::recursive_directory_iterator)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.