@Override
  public boolean startsWith(Path other) {
    JimfsPath otherPath = checkPath(other);
    return otherPath != null
        && getFileSystem().equals(otherPath.getFileSystem())
        && Objects.equals(root, otherPath.root)
        && startsWith(names, otherPath.names);
  }
Returns true if list starts with all elements of other in the same order.
jimfs/src/main/java/com/google/common/jimfs/JimfsPath.java