Subject: [Boost-bugs] [Boost C++ Libraries] #13084: boost::filesystem::exists returns false on existing pathnames on OSX systems
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2017-06-19 20:50:40
#13084: boost::filesystem::exists returns false on existing pathnames on OSX
systems
-------------------------------+------------------------
Reporter: fabrice.ducos@⦠| Owner: bemandawes
Type: Bugs | Status: new
Milestone: To Be Determined | Component: filesystem
Version: Boost 1.64.0 | Severity: Problem
Keywords: filesystem exists |
-------------------------------+------------------------
boost::filesystem::exists returns false on existing pathnames,
surprisingly.
This behaviour could be observed at least on OSX El Capitan (10.11.6) with
Boost 1.64.0
On Linux, the same code works fine.
For confirmation and reproduction, I provide a self-contained code that
displays the output of three tests of file existence.
It expects a pathname as its first (and only) argument.
Here are the outputs that it gives me on Linux and OSX (when applied to an
existing pathname):
Linux:[[BR]]
reply of boost::filesystem::exists: true[[BR]]
reply of stat_exists: true[[BR]]
reply of stream_exists: true[[BR]]
OSX:[[BR]]
reply of boost::filesystem::exists: false[[BR]]
reply of stat_exists: true[[BR]]
reply of stream_exists: true[[BR]]
-- Ticket URL: <https://svn.boost.org/trac10/boost/ticket/13084> 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-06-19 20:56:10 UTC