Maybe I'm missing something, but wouldn't -d (see -X in perlfunc) do the trick (if a "folder" is a directory)? (If a folder is a file, then maybe -f instead?)
Give a man a fish: <%-{-{-{-<
In reply to Re: Testing for a directory handle
by AnomalousMonk
in thread Testing for a directory handle
by ns550
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |