-e follows symlinks, because it does a stat(), not an lstat(). If the symlink target does not exist or is inaccessible, -e will report false even though the symlink itself exists.
If that is not what you want, you might want to try file_exists() in SHARYANTO::File::Util. Or you can implement the logic itself, by using -l instead of -e.
In reply to Re: -e file test won't follow symlinks?
by sedusedan
in thread -e file test won't follow symlinks?
by consultant1027
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |