Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] Using filesystem library from Boost version 1.44 on Cygwin 1.7
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-08-30 11:36:49


AMDG

Clarke, Carus V wrote:
> Steven Watanabe wrote:
>> Your code doesn't appear to print this last line.
>
> You are right. I added the last line after pasting in the code. Here it is:
>
> boost_fs::file_status st = boost_fs::status(path, ec);
> <snip>
> std::cout << "Does file exist? " << boost_fs::exists(st) << std::endl;
> return 0;
> }
>
> Is there anything I can do to make this work?
>

It looks like stat is setting errno to ENOENT.
Do you get the same behavior if the file exists
before starting the program?

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net