Boost logo

Boost :

From: (noreply_at_[hidden])
Date: 2004-08-17 07:19:40

Bugs item #1010681, was opened at 2004-08-17 14:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Carlo Wood (libcw)
Assigned to: Nobody/Anonymous (nobody)
Summary: boost::filesystem::exists is broken on cygwin

Initial Comment:
Compile the following code snippet:

#include <iostream>
#include <boost/filesystem/path.hpp>
#include <boost/filesystem/operations.hpp>

int main()
  boost::filesystem::path p = "/usr";
  if (!boost::filesystem::exists(p))
    std::cerr << p.string() << " doesn't exist
according to boost::filesystem" << std::endl;

$ uname -a
CYGWIN_NT-5.0 vmware 1.5.10(0.116/4/2) 2004-05-25 22:07
i686 unknown unknown Cygwin

$ g++ -g -I"/usr/src/install/3.3.1/include/boost-1_31" -L"/usr/src/install/3.3.1/lib"
$ ./a.exe
/usr doesn't exist according to boost::filesystem

Needless to say that /usr does exist:

$ ls -ld /usr
drwxrwxrwx+ 18 carlo Gebruike 4096 Aug 8 14:49


You can respond by visiting:

SF.Net email is sponsored by price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
Boost-bugs mailing list

Boost list run by bdawes at, gregod at, cpdaniel at, john at