zip

open fun zip(sourceDirPath: String, stream: OutputStream)

Compresses the specified directory into a .zip file.

Parameters

sourceDirPath

The path of the directory to be compressed.

stream

The OutputStream to write the .zip file to.

Throws

If there is an issue creating the .zip file.