bunzip2File.php
Table of Contents
Functions
- bunzip2File() : string
- Decompresses a single bzip2 file, streaming it in chunks.
Functions
bunzip2File()
Decompresses a single bzip2 file, streaming it in chunks.
bunzip2File(string $source[, string|null $destination = null ][, bool $overwrite = true ]) : string
Counterpart of bzip2File(), using the bz2 extension — no subprocess,
and the file is never fully loaded into memory.
Parameters
- $source : string
-
Path to the bzip2 file to decompress.
- $destination : string|null = null
-
Output path. Defaults to
$sourcewithout its.bz2suffix, or$source+.outwhen the source has no.bz2suffix. - $overwrite : bool = true
-
Whether to overwrite an existing destination (default:
true).
Tags
Return values
string —The destination path.