Boost C++ Libraries of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.


//  boost/filesystem/convenience.hpp  ----------------------------------------//

//  � Copyright Beman Dawes, 2002
//  � Copyright Vladimir Prus, 2002
//  Use, modification, and distribution is subject to the Boost Software
//  License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at

//  See library home page at



#include <boost/filesystem/path.hpp>  // includes <boost/filesystem/config.hpp>
#include <boost/filesystem/operations.hpp>

#include <boost/config/abi_prefix.hpp> // must be the last header

namespace boost
  namespace filesystem

//  create_directories (contributed by Vladimir Prus)  -----------------------//

    BOOST_FILESYSTEM_DECL void create_directories(const path& ph);

    BOOST_FILESYSTEM_DECL std::string extension(const path& ph);

    BOOST_FILESYSTEM_DECL std::string basename(const path& ph);

    BOOST_FILESYSTEM_DECL path change_extension(const path& ph,
      const std::string& new_extension);

  } // namespace filesystem
} // namespace boost

#include <boost/config/abi_suffix.hpp> // pops abi_suffix.hpp pragmas