Boost logo

Boost Users :

Subject: Re: [Boost-users] [filesystem] Using filesystem library from Boost version 1.44 on Cygwin 1.7
From: Clarke, Carus V (carus.v.clarke_at_[hidden])
Date: 2010-08-30 12:36:17


> Date: Mon, 30 Aug 2010 08:36:49 -0700
> From: Steven Watanabe <watanabesj_at_[hidden]>
> To: boost-users_at_[hidden]
> Subject: Re: [Boost-users] [filesystem] Using filesystem library from
> Boost version 1.44 on Cygwin 1.7
> Message-ID: <4C7BD011.6010707_at_[hidden]>
> 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_at_[hidden]


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