public static boolean isLocalFile(FileObject fileObject) {
    try {
      return fileObject.getURL().getProtocol().equalsIgnoreCase("file") && FileType.FILE.equals(fileObject.getType());
    } catch (FileSystemException e) {
      LOGGER.info("Exception when checking if fileobject is local file", e);
      return false;
    }
  }
Returns whether a file object is a local file

@param fileObject
@return true of {@link FileObject} is a local file
olv-vfs/src/main/java/pl/otros/vfs/browser/util/VFSUtils.java