What's wrong with -d and -f?
In reply to Re: POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux by Corion in thread POSIX::S_ISDIR() with $stat->mode values from Windows vs. Linux by isync