zip..Root.compression.zipCompress zip archive. Under the hood:
| OS | command | description |
|---|---|---|
| windows | powershell -command "Compress-Archive -Path \"inputPath\" -Force -DestinationPath \"pathToZipFile\"" |
Compress-Archive |
| linux | zip -r "pathToZipFile" "inputPath" |
zip |
(warning: commands prints own output)
Parameters: String inputPath, String pathToZipFile
Return value: reference to pathToZipFile
Object, Callable, BlockCallable
import("compression");
compression.zip("./contents/*", "pack.zip");