Exemple #1
0
 public String getName() {
   if (TachyonURI.SEPARATOR.equals(mAbsolutePath)) {
     return "root";
   } else {
     return mName;
   }
 }
Exemple #2
0
 /**
  * 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));
 }