decompress
fun Path.decompress(outFile: Path? = null, compressorName: String? = null, readOptions: Array<OpenOption> = emptyArray(), writeOptions: Array<OpenOption> = emptyArray()): Path
Decompresses a file and outputs it in the same directory.
Parameters
outFile
The filename to write the decompressed file to. If null
, defaults to the filename of the compressed file with the compression file extension trimmed out.
compressorName
The name of the decompressor to use. If null
, the compression algorithm will be automatically determined by CompressorStreamFactory.
readOptions
The options to use when opening the input file for reading.
writeOptions
The options to use when opening the output file for writing.