Defined in header
<filesystem> | ||
---|---|---|
enum class directory_options { none, follow_directory_symlink, skip_permission_denied }; | (since C++17) |
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 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. |
constructs a directory iterator (public member function of std::filesystem::directory_iterator ) |
|
constructs a recursive directory iterator (public member function of std::filesystem::recursive_directory_iterator ) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/filesystem/directory_options