in reply to Re^2: Testing if file exists
in thread Testing if file exists

The problem is that -e will return true even if the specified "path" or "file" is actually a directory.

May the Force be with you