code: public static Path asPath(String path) {
      URI uri = URI.create(path);
      return uri.getScheme() == null ? Paths.get(path) : asPath(uri);
    }
docs: Convert the given path string to a {@link Path} object.
  @param path the path to convert
  @return a {@link Path} object