std::filesystem::status_known
STD::文件系统::Status[医]已知
Defined in header | | |
---|---|---|
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) |
© cppreference.com
在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。