gunzip

gunzip(source: str | Path, target: str | Path | None = None, *, cleanup: bool = False) Path[source]

Unzip a file in the source to the target.

Parameters:
  • source – The path to an input file

  • target – The path to an output file

  • cleanup – Whether to clean the output file