If you do find this general technique useful, I'll just highlight two sections from the warnings pragma documentation which you may want to look at:
— Ken
In reply to Re^3: Testing for a directory handle
by kcott
in thread Testing for a directory handle
by ns550
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |