1 // libs/filesystem/src/convenience.cpp -------------------------------------//
3 // (C) Copyright Beman Dawes, 2002
4 // (C) Copyright Vladimir Prus, 2002
5 // Permission to copy, use, modify, sell and distribute this software
6 // is granted provided this copyright notice appears in all copies.
7 // This software is provided "as is" without express or implied
8 // warranty, and with no claim as to its suitability for any purpose.
10 // See http://www.boost.org/libs/filesystem for documentation.
12 #include <boost/filesystem/convenience.hpp>
19 // create_directories (contributed by Vladimir Prus) -----------------------//
21 void create_directories(const path& ph)
23 if (ph.empty() || exists(ph)) return;
25 // First create branch, by calling ourself recursively
26 create_directories(ph.branch_path());
27 // Now that parent's path exists, create the directory
31 } // namespace filesystem