Boost logo

Boost Users :

Subject: Re: [Boost-users] (newbie) is_regular_file vs. symlinks in boost::filesystem ?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-09-18 13:47:25


AMDG

On 09/18/2012 03:26 AM, Christian Convey wrote:
> Are you sure? It looks to me like the 1.51 documentation says the
> same thing as my 1.50 documentation:
>
> http://www.boost.org/doc/libs/1_51_0/libs/filesystem/doc/reference.html#Enum-file_type
>
> That makes it look like symlinks and regular files are mutually
> exclusive, since they have different values in the file_type
> enumeration, and is_regular_file just tests for which enumeration
> value is associated with the given file's type:
>
> http://www.boost.org/doc/libs/1_51_0/libs/filesystem/doc/reference.html#is_regular_file
>

is_regular_file is defined in terms of status:

http://www.boost.org/doc/libs/1_51_0/libs/filesystem/doc/reference.html#status

"If possible, determines the attributes of the file p resolves to, as if
by ISO/IEC 9945 stat()."

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