code: public static UnixPath getPath(boolean permitEmptyComponents, String path) {
      if (path.isEmpty()) {
        return EMPTY_PATH;
      } else if (isRootInternal(path)) {
        return ROOT_PATH;
      } else {
        return new UnixPath(permitEmptyComponents, path);
      }
    }
docs: Returns new path of {@code first}.