Boost logo

Boost :

Subject: Re: [boost] [filesystem] proposal: treat reparse files as regular files
From: Gavin Lambert (gavinl_at_[hidden])
Date: 2015-08-02 19:28:03


On 1/08/2015 10:39, Niall Douglas wrote:
> On 30 Jul 2015 at 11:17, Gavin Lambert wrote:
>
>> You should probably make it generic via IsReparseTagNameSurrogate as I
>> mentioned earlier rather than checking for the symlink/dedup tags
>> specifically.
>
> Actually no - AFIO can only read the target for reparse points it
> knows about.
>
> I committed a fix for this earlier today. It reports reparse points
> with tag IO_REPARSE_TAG_MOUNT_POINT or IO_REPARSE_TAG_SYMLINK as
> symlinks. Everything else is reported normally.

Granted I'm not familiar with AFIO's APIs, but wouldn't it make the most
sense to report other name surrogates as symlinks as well (via an "is
this a symlink" or "get file type" method), but then if queried for the
target of an unknown symlink type it will return/throw a "not supported"
error?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk