Re: [Boost-bugs] [Boost C++ Libraries] #7258: boost::filesystem::create_directories(const &path) returns false if the path contains a slash at the end of the string

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7258: boost::filesystem::create_directories(const &path) returns false if the path contains a slash at the end of the string
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-17 13:44:06


#7258: boost::filesystem::create_directories(const &path) returns false if the
path contains a slash at the end of the string
---------------------------------+----------------------------------
  Reporter: francis.thibault@… | Owner: bemandawes
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: filesystem
   Version: Boost 1.57.0 | Severity: Problem
Resolution: | Keywords: create_directories()
---------------------------------+----------------------------------

Comment (by hadatko):

 Still problem 1.55.1
 you can make this useful with this
 if(!boost::filesystem::is_directory(dir))
 {
     boost::filesystem::create_directories(dir);
     if(!boost::filesystem::is_directory(dir))
     {
      error code
     }
 }

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7258#comment:6>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:17 UTC