Export (0) Print
Expand All

create_directory Function

Creates a directory from a specified file name.

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

Pval

An Path object that contains a directory path. Path can be either a basic_path or a type that is 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

Show:
© 2014 Microsoft