Python Forum
python zipfile.ZipFile makes zip file but can't add folders to them
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
python zipfile.ZipFile makes zip file but can't add folders to them
#3
yes. it is correct. i'm now getting a new error, however:

Error:
Traceback (most recent call last): File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\framework\scriptutils.py", line 323, in RunScript debugger.run(codeObject, __main__.__dict__, start_stepping=0) File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\debugger\__init__.py", line 60, in run _GetCurrentDebugger().run(cmd, globals,locals, start_stepping) File "C:\Python27\ArcGIS10.2\Lib\site-packages\pythonwin\pywin\debugger\debugger.py", line 654, in run exec cmd in globals, locals File "N:\Common\Script\Drivers\make_zips.py", line 1, in <module> import zipfile as zp File "C:\Python27\ArcGIS10.2\lib\zipfile.py", line 752, in __init__ self.fp = open(file, modeDict[mode]) IOError: [Errno 22] invalid mode ('rb') or filename: ' P:\\2018\\Archive\\CO_001_Model.zip'
Reply


Messages In This Thread
RE: python zipfile.ZipFile makes zip file but can't add folders to them - by CashMunny - May-08-2018, 11:15 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using zipfile module - finding folders not files darter1010 2 515 Apr-06-2024, 07:22 AM
Last Post: Pedroski55
  What a difference print() makes Mark17 2 684 Oct-20-2023, 10:24 PM
Last Post: DeaD_EyE
  How do I add comments from a text-file to an array of folders? clausneergaard 2 1,922 Feb-08-2023, 07:45 PM
Last Post: Larz60+
  Tkinter + Multiprocessing startmap makes UI Freeze sunny9495 4 1,577 Nov-13-2022, 12:49 PM
Last Post: sunny9495
  python move folders and subfolders not working mg24 5 2,524 Nov-09-2022, 02:24 PM
Last Post: Larz60+
  [Solved by deanhystad] Create a zip file using zipfile library DZ_Galaxy 2 1,365 Aug-17-2022, 04:57 PM
Last Post: DZ_Galaxy
  Upgrade makes Code Error kucingkembar 6 3,378 Jul-28-2022, 06:44 PM
Last Post: kucingkembar
  Can ZipFile be used to extract hidden files? AiedailEclipsed 0 1,756 Mar-22-2022, 05:21 PM
Last Post: AiedailEclipsed
  Code to check folder and sub folders for new file and alert fioranosnake 2 2,115 Jan-06-2022, 05:03 PM
Last Post: deanhystad
  Created zipfile without all the subfolder? korenron 3 4,101 Jun-23-2021, 12:44 PM
Last Post: korenron

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020