使用检索文件名状态。
file_status status() const;
file_status status(
error_code& Code
) const;
参数
- Code
一个 error_code 对象。
返回值
如果存储的状态不为 status_unknown,则存储返回的状态。 否则,如果,符号链接状态不是 status_unknown 或 symlink_file,然后符号链接状态返回。 否则,方法确定状态从操作系统。
与操作的所有错误存储在 Code中。
要求
标头: filesystem
命名空间: std::tr2::sys