The code posted should work, if the relative path is relative to the current working directory. The -e operator only tells you that the path exists, if you really want to know if it is a file, you should check out the -f operator. Also, if you are working in a windows environment, make sure that $mall_path has any \ escaped to \\ or you may have issues with variable interpolation.
In reply to Re: Testing if file exists
by JediWizard
in thread Testing if file exists
by hoffj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |