status 函式

擷取指定檔案的狀況。

template<class Path>
inline file_status status(
   const Path& Pval
);
template<class Path>
inline file_status status(
   const Path& Pval,
   error_code& Code
);

參數

  • Pval
    Path 物件。 Path 可以是 basic_path 或衍生自 basic_path 的型別。

  • Code
    error_code 物件。

傳回值

Pval所指定之檔案的狀態。

備註

第二個函式指派給 Code 與作業的錯誤碼。

需求

標題: filesystem

命名空間: std::tr2::sys

請參閱

參考

<filesystem>

file_status 類別

其他資源

C++ 標準程式庫標頭檔