in reply to Re^2: Testing if file existsin thread Testing if file exists
The problem is that -e will return true even if the specified "path" or "file" is actually a directory.