create_directory 函式
會從指定的檔案名稱的目錄。
template<class Path>
inline bool create_directory(
const Path& Pval
);
參數
- Pval
包含一個目錄路徑的 Path 物件。 Path 可以是 basic_path 或從 basic_path衍生型別。
傳回值
true ,如果目錄建立成功; false ,如果目錄已經存在。
備註
如果目錄不可能建立,函式會擲回 basic_filesystem_error。
需求
標題: 檔案系統
命名空間: std::tr2::sys