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

std::filesystem::status_known

Defined in header <filesystem>

bool status_known( std::filesystem::file_status s );

(1)

(since C++17)

检查给定文件状态是否已知,等效于s.type() != file_type::none...

参数

s

-

file status to check

返回值

true如果给定的文件状态是未知的文件状态。

例外

noexcept规格:

noexcept

注记

不管名称如何,函数都会检查file_type::none%28表示错误发生在%29,而不是file_type::unknown%28表示文件存在,但其类型不能确定为%29。

另见

statussymlink_status (C++17)(C++17)

determines file attributesdetermines file attributes, checking the symlink target (function)

statussymlink_status

status of the file designated by this directory entrysymlink_status of the file designated by this directory entry (public member function of std::filesystem::directory_entry)

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

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

扫码关注腾讯云开发者

领取腾讯云代金券