Zip

Compression and extracting module.

Example

rps install zip

Actions

compress :: String → ...String → String

Parameters:
Name Type Description
zipFile String

name of the zip file.

entries List

the list of files or folders to be zipped.

Returns:
String -

zip file name.

Example
;Create to a file call back.zip, compress temp folder and readme.md file
compress "backup.zip" "./temp/" "./readme.md"

extract :: String → String → String

Parameters:
Name Type Description
zipFile String

filename of the zip file.

extractTo String

directory to extract to.

Returns:
String -

extracted directory name.

Example
;Extract the zip file to the folder temp
extract "backup.zip" "./temp/"
-->