public String getName() { if (TachyonURI.SEPARATOR.equals(mAbsolutePath)) { return "root"; } else { return mName; } }
/** * Check if the given path is the root. * * @param path The path to check * @return true if the path is the root * @throws InvalidPathException */ public static boolean isRoot(String path) throws InvalidPathException { return TachyonURI.SEPARATOR.equals(cleanPath(path)); }