std::filesystem::directory_options
From cppreference.com
< cpp | filesystem
C++
Feature test macros (C++20)
Concepts library (C++20)
Metaprogramming library (C++11)
Ranges library (C++20)
Filesystem library (C++17)
Concurrency support library (C++11)
Execution control library (C++26)
Filesystem library
filesystem::directory_options
Defined in header
<filesystem>
enum class directory_options {
(since C++17)
none = /* unspecified */,
follow_directory_symlink = /* unspecified */,
skip_permission_denied = /* unspecified */
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). none represents the empty bitmask; every other enumerator represents a distinct bitmask element.
[edit] Constants
Enumerator
Meaning
none
(default) skip directory symlinks, "permission denied" is error
follow_directory_symlink
follow rather than skip directory symlinks
skip_permission_denied
skip directories that would otherwise result in "permission denied" errors
[edit] Example
This section is incomplete
Reason: no example
Reason: no example
[edit] See also
constructs a directory iterator
(public member function of
(public member function of
std::filesystem::directory_iterator
) [edit]
constructs a recursive directory iterator
(public member function of
(public member function of
std::filesystem::recursive_directory_iterator
) [edit]