You can compress recursively a folder using the following example