Re: [Boost-users] [filesystem] Using filesystem library from Boost version 1.44 on Cygwin 1.7

Date: Mon, 30 Aug 2010 08:36:49 -0700 From: Steven Watanabe
To: boost-users@lists.boost.org Subject: Re: [Boost-users] [filesystem] Using filesystem library from Boost version 1.44 on Cygwin 1.7 Message-ID: <4C7BD011.6010707@providere-consulting.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed 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
Yes, the behavior is the same whether the program writes the file or if the file had been previously written. Thanks, Carus V. (Bud) Clarke carus.v.clarke@boeing.com

AMDG Clarke, Carus V wrote:
It looks like stat is setting errno to ENOENT. Do you get the same behavior if the file exists before starting the program?
Yes, the behavior is the same whether the program writes the file or if the file had been previously written.
Okay. Try using stat directly, instead of using Boost.Filesystem. If that works, then can you use a debugger to find exactly what arguments Boost.Filesystem is passing to stat? In Christ, Steven Watanabe
participants (2)
-
Clarke, Carus V
-
Steven Watanabe