title: How can I find out if a File is a file or directory if it does not exist?
body: <p><code>File.isFile()</code> and <code>File.isDirectory()</code> both return false not only when the <code>File</code> is not the specified type, but also when the <code>File</code> itself does not exist on the filesystem.  How can I determine whether the <code>File</code> represents a file or a directory when it does not exist?</p>