[Boost-bugs] [Boost C++ Libraries] #12574: is_directory sets boost::system::errc::no_such_process when path contains more directory components

Subject: [Boost-bugs] [Boost C++ Libraries] #12574: is_directory sets boost::system::errc::no_such_process when path contains more directory components
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-11-02 05:58:31


#12574: is_directory sets boost::system::errc::no_such_process when path contains
more directory components
---------------------------------------------+------------------------
 Reporter: Wojciech MuÅ‚a <wojciech_mula@…> | Owner: bemandawes
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
  Version: Boost 1.62.0 | Severity: Problem
 Keywords: windows |
---------------------------------------------+------------------------
 Assume there is a directory "/tmp", then is_directory("/tmp", error)
 returns true and sets error's value to '''success'''.

 When we query for subdirectory, like is_directory("/tmp/foo", error), then
 the function returns false and sets error's value to
 '''no_such_file_or_directory'''. It is OK.

 However, query like is_directory("/tmp/foo/bar") sets error's value to
 '''no_such_process'''. It is completely unexpected & counterintuitive. It
 seems that this value is returned when the part of path after an existing
 directory contains directory separator(s) -- here "foo/bar".

 This happens on Windows, I haven't tested it on Linux.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12574>
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:20 UTC