Bill Nortman wrote:
I see the function create_directory( "foobar" ); in an example on http://www.boost.org/libs/filesystem/doc/index.htm but wanted more details, such as if the function does a recursive create?
Please note the subject line change. It's customary to specify the library name and the particulars of your problem in the subject line. Did you mean create_directories? Did you see: http://www.boost.org/libs/filesystem/doc/tr2_proposal.html#Convenience-funct... In particular: template <class Path> bool create_directories(const Path & p); Requires: p.empty() || forall px: px == p || is_parent(px, p): is_directory(px) || !exists( px ) Returns: The value of !exists(p) prior to the establishment of the postcondition. Postcondition: is_directory(p) Throws: basic_filesystem_error<Path> if exists(p) && !is_directory(p)