core/src/main/java/org/apache/commons/vfs2/provider/local/LocalFile.java
/**
     * Returns the file's type.
     */
Returns the file's type.
Returns the file ' s type .
@Override
    protected FileType doGetType() throws Exception
    {
        if (!file.exists() && file.length() < 1)
        {
            return FileType.IMAGINARY;
        }
        if (file.isDirectory())
        {
            return FileType.FOLDER;
        }
            return FileType.FILE;
    }
@ Override protected FileType doGetType ( ) throws Exception { if ( ! file . exists ( ) && file . length ( ) < 1 ) { return FileType . IMAGINARY ; } if ( file . isDirectory ( ) ) { return FileType . FOLDER ; } return FileType . FILE ; }
Returns the file's type.
Returns the file ' s type .
// JDK BUG: 6192331 // if (!file.exists()) // In doubt, treat an existing file as file // if (file.isFile()) // { // } // throw new FileSystemException("vfs.provider.local/get-type.error", file);