in reply to Re: Detecting if a folder is a symbolic link
in thread Detecting if a folder is a symbolic link
If you look at the documentation for the -X functions, the -l test is described as:
File is a symbolic link (false if symlinks aren't supported by the file system).
If you look at the Alphabetical Listing of Perl Functions section of perlport, the following note is listed under -X:
(Win32, VMS, RISC OS) -g , -k , -l , -u , -A are not particularly meaningful.
Based on those documents, it looks like -l is not going to work on Windows.
I'm not saying this is the best alternative, but one alternative that you could consider is the testL function from the Win32::LongPath module.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Detecting if a folder is a symbolic link
by borodache (Novice) on Apr 01, 2018 at 07:29 UTC | |
by hippo (Bishop) on Apr 01, 2018 at 15:18 UTC | |
by dasgar (Priest) on Apr 03, 2018 at 05:09 UTC |
In Section
Seekers of Perl Wisdom