首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::filesystem::file_type

Defined in header <filesystem>

?

?

enum class file_type { none = /* unspecified */, not_found = /* unspecified */, regular = /* unspecified */, directory = /* unspecified */, symlink = /* unspecified */, block = /* unspecified */, character = /* unspecified */, fifo = /* unspecified */, socket = /* unspecified */, unknown = /* unspecified */, /* implementation-defined */ };

?

(since C++17)

指示路径引用的文件或目录的类型。

常数

Constant

Meaning

none

indicates that the file status has not been evaluated yet, or an error occurred when evaluating it

not_found

indicates that the file was not found (this is not considered an error)

regular

a regular file

directory

a directory

symlink

a symbolic link

block

a block special file

character

a character special file

fifo

a FIFO (also known as pipe) file

socket

a socket file

implementation-defined

an additional implementation-defined constant for each additional file type supported by the implementation

unknown

the file exists but its type could not be determined

另见

代码语言:txt
复制
 ? cppreference.com

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

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com