back-end/utils/export_collection_data_module.py
def zip_directory(dir_path, zip_filename, path):
    """ This function zips a directory and saves it to the path under the name zip_filename
    @parameters
        dir_path        (str)   the file to zip
        zip_filename    (str)   the name of the zipe file
        path            (str)   the path to save the zip file
    """
    print("\tZipping Files")
    with zipfile.ZipFile(path+zip_filename, 'w', zipfile.ZIP_DEFLATED) as zip_file:

        for root, dirs, files in os.walk(dir_path):
            for file in files:
                zip_file.write(os.path.join(root, file), basename(os.path.join(root, file)))

    # -----------------------------------------------------------------------------------------------------------------#

 This function zips a directory and saves it to the path under the name zip_filename
    @parameters
        dir_path        (str)   the file to zip
        zip_filename    (str)   the name of the zipe file
        path            (str)   the path to save the zip file
    
This function zips a directory and saves it to the path under the name zip_filename
@parameters
dir_path        (str)   the file to zip
zip_filename    (str)   the name of the zipe file
path            (str)   the path to save the zip file
This function zips a directory and saves it to the path under the name zip_filename @parameters dir_path ( str ) the file to zip zip_filename ( str ) the name of the zipe file path ( str ) the path to save the zip file
def zip_directory(dir_path, zip_filename, path):
    print("\tZipping Files")
    with zipfile.ZipFile(path+zip_filename, 'w', zipfile.ZIP_DEFLATED) as zip_file:
        for root, dirs, files in os.walk(dir_path):
            for file in files:
                zip_file.write(os.path.join(root, file), basename(os.path.join(root, file)))
def zip_directory ( dir_path , zip_filename , path ) : print ( "\tZipping Files" ) with zipfile . ZipFile ( path + zip_filename , 'w' , zipfile . ZIP_DEFLATED ) as zip_file : for root , dirs , files in os . walk ( dir_path ) : for file in files : zip_file . write ( os . path . join ( root , file ) , basename ( os . path . join ( root , file ) ) )
This function zips a directory and saves it to the path under the name zip_filename
@parameters
dir_path        (str)   the file to zip
zip_filename    (str)   the name of the zipe file
path            (str)   the path to save the zip file
This function zips a directory and saves it to the path under the name zip_filename @parameters dir_path ( str ) the file to zip zip_filename ( str ) the name of the zipe file path ( str ) the path to save the zip file
""" This function zips a directory and saves it to the path under the name zip_filename
    @parameters
        dir_path        (str)   the file to zip
        zip_filename    (str)   the name of the zipe file
        path            (str)   the path to save the zip file
    """ # -----------------------------------------------------------------------------------------------------------------#

dir_path
zip_filename
path