std::experimental::filesystem::status_known
来自cppreference.com
< cpp | experimental | fs
在标头 <experimental/filesystem> 定义
|
||
bool status_known( file_status s ); |
(1) | (文件系统 TS) |
检查给定的文件状态是否为已知,等价于 s.type() != file_type::none。
参数
s | - | 要检查的文件状态 |
返回值
若给定文件状态为未知文件状态则为 true。
异常
noexcept 规定:
noexcept
注解
无论其名字为何,此函数检查文件状态是否为 file_type::none
(意为发生了错误)而非 file_type::unknown
(意为文件存在,但无法确定其类型)。
参阅
确定文件属性 确定文件属性,检查符号链接目标 (函数) | |
缓存的此目录项所代表的文件的 status 缓存的此目录项所代表的文件的 symlink_status ( std::experimental::filesystem::directory_entry 的公开成员函数) |