Boost logo

Boost Users :

From: Jeff Flinn (TriumphSprint2000_at_[hidden])
Date: 2007-12-05 09:09:13


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-functions

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)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net