On Wed, 14 Jan 2009, Ben Morrow wrote:
> Quoth rgarciasua...@gmail.com ("Rafael Garcia-Suarez"):
> >
> > Dunno. Does Windows 7 implement symbolic links ? I think that's
> > unlikely.
>
> Windows has had symlinks (and hard links) when using NTFS since at
> least Win2k, but they aren't much used and there isn't any libc
> support (also, Explorer tends to get a little confused by them).
> Win32::Symlink provides symlink(2) and readlink(2) replacements,
> but not lstat(2). If someone wanted to do the work, it might be
> nice for perl's lstat &c. to support them, but it's likely not
> worth the effort.

The Win32::Symlink module is somewhat misnamed, as it actually creates
NTFS junctions and not symbolic links. Junctions are only at the
directory level and can only point to other directories within the same
filesystem.  Junctions in Win2K and WinXP are also rather fragile:
If you ever delete a junction with Explorer, or del/s you end up
deleting the whole tree the junction was pointing to. :(

NTFS symbolic links are only supported on Windows Vista, Windows 2008,
and Windows 7 as far as I know. But maybe Perl should abstract both
junctions and symbols links behind readlink() and lstat().

Cheers,
-Jan


Reply via email to