zip folder code example
Example 1: python zip folder
import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
Example 2: zip destination folder
zip -r /path/to/destination.zip /files
import shutil
shutil.make_archive(output_filename, 'zip', dir_name)
zip -r /path/to/destination.zip /files