Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

create_directories Function

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

template<class Path>
inline bool create_directories(
   const Path& Pval
);
Pval

An Path object that contains a directory path. Path can be either a basic_path or a type that's derived from basic_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

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.