parquet-cli/src/main/java/org/apache/parquet/cli/BaseCommand.java
public Path qualifiedPath(String filename) throws IOException {
    Path cwd = defaultFS().makeQualified(new Path("."));
    return new Path(filename).makeQualified(defaultFS().getUri(), cwd);
  }
public Path qualifiedPath(String filename) throws IOException {
    Path cwd = defaultFS().makeQualified(new Path("."));
    return new Path(filename).makeQualified(defaultFS().getUri(), cwd);
  }
Returns a qualified {@link Path} for the {@code filename}.

If the file does not have a file system scheme, this uses the default FS.

@param filename The filename to qualify
@return A qualified Path for the filename
@throws IOException if there is an error creating a qualified path