zipDir

open fun zipDir(zipFileName: String, dir: String)(source)

Zips a directory into a specified zip file name.

Parameters

zipFileName

the name of the zip file

dir

the directory to be compressed

Throws

if there was an error creating the zip file or adding the directory