You can check with -e $dir if it exists, and remove it with unlink if it's an ordinary file.
In reply to Re: problem in checking if directory exists
by moritz
in thread problem in checking if directory exists
by denzil_cactus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |