src/main/java/org/apache/hadoop/util/VirtualINode.java
public String path() {
    if (isRoot()) {
      return "/";
    }

    StringBuilder path = new StringBuilder(data);
    VirtualINode current = this;
    VirtualINode next;
    while ((next = current.parent()) != null) {
      path.insert(0, next.data + "/");
      current = next;
    }
    return path.toString();
  }
/**
   * Traverses parents upwards and rebuilds the entire path.
   *
   * @return The path this VirtualINode represents.
   */
Traverses parents upwards and rebuilds the entire path.
@return The path this VirtualINode represents.
Traverses parents upwards and rebuilds the entire path . @return The path this VirtualINode represents .
public String path() {
    if (isRoot()) {
      return "/";
    }
    StringBuilder path = new StringBuilder(data);
    VirtualINode current = this;
    VirtualINode next;
    while ((next = current.parent()) != null) {
      path.insert(0, next.data + "/");
      current = next;
    }
    return path.toString();
  }
public String path ( ) { if ( isRoot ( ) ) { return "/" ; } StringBuilder path = new StringBuilder ( data ) ; VirtualINode current = this ; VirtualINode next ; while ( ( next = current . parent ( ) ) != null ) { path . insert ( 0 , next . data + "/" ) ; current = next ; } return path . toString ( ) ; }
Traverses parents upwards and rebuilds the entire path.
Traverses parents upwards and rebuilds the entire path .