python zipfile multiple files
问题 i am having problems with python and zipfile, namely: I can't add a second file to my zip. here is my code, if you need more, I'll be glad to provide it. def zipDir(fn_source, fn_destinationFolder): ''' fn_destinationFolder = folder to zip fn_source = destination path for the zip ''' fn_zipfileName = os.path.join(os.path.dirname(os.path.basename(fn_source)),fn_destinationFolder)+'.zip' with zipfile.ZipFile(fn_zipfileName, 'w') as fn_zipfile: for csvFile in os.listdir(fn_destinationFolder): #