private List<Path> asList() {
    return new AbstractList<Path>() {
      @Override
      public Path get(int index) {
        return getName(index);
      }

      @Override
      public int size() {
        return getNameCount();
      }
    };
  }
Resolves the given name against this path. The name is assumed not to be a root name.
jimfs/src/main/java/com/google/common/jimfs/JimfsPath.java