std::experimental::filesystem::directory_options

From cppreference.com
< cpp‎ | experimental‎ | fs
 
 
Technical specifications
Filesystem library (filesystem TS)
Library fundamentals (library fundamentals TS)
Library fundamentals 2 (library fundamentals TS v2)
Library fundamentals 3 (library fundamentals TS v3)
Extensions for parallelism (parallelism TS)
Extensions for parallelism 2 (parallelism TS v2)
Extensions for concurrency (concurrency TS)
Extensions for concurrency 2 (concurrency TS v2)
Concepts (concepts TS)
Ranges (ranges TS)
Reflection (reflection TS)
Mathematical special functions (special functions TR)
 
 
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)