On 3 Aug 2015 at 11:28, Gavin Lambert wrote:
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,
There is a single page "cheat sheet" at https://boostgsoc13.github.io/boost.afio/doc/html/afio/overview.html.
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?
I am not adverse to adding a "st_reparse_point" field to stat_t. This would let client code do its own detection on Windows. Does this work for you? Niall -- ned Productions Limited Consulting http://www.nedproductions.biz/ http://ie.linkedin.com/in/nialldouglas/