private static boolean isLocalFileSystem(FileObject fileObject) {
    return fileObject.getName().getScheme().equalsIgnoreCase("file");
  }
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