Namespaces
Variants
Views
Actions

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 2 TS)
Extensions for parallelism (parallelism TS)
Extensions for concurrency (concurrency TS)
Concepts (concepts TS)
Ranges (ranges TS)
Special mathematical functions (special math 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)

[edit] 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.

[edit] See also

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