I am zipping a folder in python like
mypath = "c:\Test\mypath"
foldername = "mydata"
zipf = zipfile.ZipFile(foldername + '.zip', 'w', zipfile.ZIP_DEFLATED)
zipdir(mypath, zipf)
zipf.close()
the output of zipped file mydata.zip is located at mypath "c:\Test\mypath\mydata.zip" But i want mydata.zip file into another folder like "c:\Test\mypath\anotherfolder\mydata.zip"
Please help me to do achieve this.