Yes. I'd use a test like this in real code, and I guess it got into my recommendation:
With that I can test truth to see if there is a directory of that name, or defined to see if the name is in use.is_dir { -e shift() ? -d _ ? 1 : 0 : undef; }
After Compline,
Zaxo
In reply to Re^3: directory exists
by Zaxo
in thread directory exists
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |