I need to zip a folder that containts an .xml file and a .fgdb file by using python. Could anyone help me? I tried a few scripts I found on internet but there is always some technical issue (such as creating an empty zip file, or create zip file I cannot open ‘no permission’ etc..)
Thanks in advance.
The key to making it work is the
os.walk()function. Here is a script I assembled in the past that should work. Let me know if you get any exceptions.