in reply to Testing if file exists
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Testing if file exists
by hoffj (Initiate) on Oct 05, 2004 at 12:10 UTC | |
by JediWizard (Deacon) on Oct 05, 2004 at 12:37 UTC |