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

-e vs -f?

The references I'm looking at say that:
-e is true if file exists
-f is true if file is a plain file

Is this info out-of-date/incorrect or am I missing something?

Replies are listed 'Best First'.
Re^3: Testing if file exists
by JediWizard (Deacon) on Oct 05, 2004 at 12:37 UTC

    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