On a Unix-y or POSIX-y system, directories are a special case of files, as are named pipes, device files, and a few other things. They are not regular files. Directories can be treated as files in some cases, but it is generally undesirable to do so. It's best to test.
In reply to Re^4: Regex negative lookahead
by mr_mischief
in thread Regex negative lookahead
by aeqr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |