code: public static String[] getPathComponents(String path) throws InvalidPathException {
      path = cleanPath(path);
      if (isRoot(path)) {
        return new String[]{""};
      }
      return path.split(AlluxioURI.SEPARATOR);
    }
docs: Gets the path components of the given path. The first component will be an empty string.
  
  "/a/b/c" => {"", "a", "b", "c"}
  "/" => {""}
  
  @param path The path to split
  @return the path split into components
  @throws InvalidPathException if the path is invalid