public boolean isDirectory() {
        return file.isDirectory();
    }
Tests whether the file denoted by this abstract pathname is a
directory.

@return true if and only if the file denoted by this
abstract pathname exists and is a directory;
false otherwise
src/main/java/spark/resource/ExternalResource.java