[Qt-interest] Can I recognize an NTFS junction?
Bob Babcock
wssddc at nospam.gis.net
Tue Jul 20 03:26:05 CEST 2010
Constantin Makshin <cmakshin at gmail.com> wrote in
news:201007192218.35823.cmakshin at gmail.com:
> Something like this may work ("dirIt" is a QDirIterator object):
>
> DWORD attributes =
> GetFileAttributesW(LPCWSTR(dirIt.fullPath().utf16())); if (attributes
> != INVALID_FILE_ATTRIBUTES && (attributes &
> FILE_ATTRIBUTE_REPARSE_POINT) != 0) {
> // "dirIt" points to a NTFS reparse point (symbolic link,
> junction, etc.)
> }
Thanks. This works (after changing fullPath to filePath). I see there are
some junctions buried in the Windows XP file system that I didn't know
about before.
More information about the Qt-interest-old
mailing list