create_directories Function

Creates a directory from a specified file name. Also creates intermediate directories as required.

bool create_directories(const path& Pval);
bool create_directories(const path& Pval, error_code& Code) noexcept;

Pval

An path object that contains a directory path.

true if the directory creation succeeds; false if the directory already exists.

If the directory cannot be created, the function throws a basic_filesystem_error.

Header: filesystem

Namespace: std::tr2::sys

Show: