Dot has a special meaning in regular expressions. To match a literl dot, use /\./.
Also, you should use -d to test whether something is a directory - directory names with extensions are also valid.
In reply to Re^3: working with directories
by choroba
in thread working with directories
by madM
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |