public static boolean canGoUrl(FileObject fileObject) {
    //http files
    try {
      if (!fileObject.getURL().getProtocol().startsWith("http") && VFSUtils.pointToItself(fileObject)) {
        return false;
      }
    } catch (FileSystemException e1) {
      LOGGER.error("Can't check if file is link", e1);
    }

    //Local files
    return !VFSUtils.isLocalFile(fileObject);

  }
Returns whether a folder contains a given file

@param folder A folder
@param file   A file
@return whether a folder contains a given file
olv-vfs/src/main/java/pl/otros/vfs/browser/util/VFSUtils.java