在线文档教程
C++
文件系统 | Filesystem

std::filesystem::directory_options

文件系统::目录[医]备选方案

Defined in header
enum class directory_options { none = /* unspecified */, follow_directory_symlink = /* unspecified */, skip_permission_denied = /* unspecified */ };(since C++17)

此类型表示控制directory_iteratorrecursive_directory_iterator...

directory_options满足…的要求BitmaskType%28,这意味着按位运算符operator&,,,operator|,,,operator^,,,operator~,,,operator&=,,,operator|=,和operator^=为此类型%29定义。

成员常数

Member constantMeaning
none(Default) Skip directory symlinks, permission denied is error.
follow_directory_symlinkFollow rather than skip directory symlinks.
skip_permission_deniedSkip directories that would otherwise result in permission denied errors.

另见

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

© cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

http://en.cppremience.com/w/cpp/filesystem/目录[医]备选方案