public static boolean isRoot(FileObject fileObject) {
    try {
      return fileObject.getParent() == null;
    } catch (FileSystemException ex) {
      return false;
    }
  }
Tells whether a file is the root file system

@param fileObject A file representation
@return whether a file is the root file system
olv-vfs/src/main/java/pl/otros/vfs/browser/util/VFSUtils.java