title: python: zipfile.ZipFile No such file or directory
body: <p>There is folder path:</p>
  
  <pre><code>P:\\2018\\Archive\\
  </code></pre>
  
  <p>There are many zipfiles I want to create programmatically, but am starting with test. I will name this test zip file "CO_007_II.zip" and will attempt to create in above location:</p>
  
  <pre><code>import zipfile as zp
  
  with zp.ZipFile("P:\\2018\\Archive\\CO_007_II.zip",'w') as myzip:
      myzip.write(r"P:\2018\CO_007_II")
  </code></pre>
  
  <p>But I get error!</p>
  
  <p>...     </p>
  
  <pre><code>Traceback (most recent call last):
    File "&lt;interactive input&gt;", line 1, in &lt;module&gt;
    File "C:\Python27\ArcGIS10.2\lib\zipfile.py", line 752, in __init__
      self.fp = open(file, modeDict[mode])
  IOError: [Errno 2] No such file or directory: 'P:\\2018\\Archive\\CO_007_II.zip'
  </code></pre>
  
  <p>Is this not method for creating new zipfile? I know file does not exist. Is why I am using 'w' mode, no?</p>
  
  <p>This is documentation:</p>
  
  <p><a href="https://docs.python.org/3/library/zipfile.html" rel="noreferrer">https://docs.python.org/3/library/zipfile.html</a></p>
  
  <p>It says:</p>
  
  <p>'w' to truncate and <strong><em>write a new file</em></strong></p>
  
  <p>Example on documentation page:</p>
  
  <pre><code>with ZipFile('spam.zip', 'w') as myzip:
      myzip.write('eggs.txt')
  </code></pre>
  
  <p>code worked two days ago to create new zip file but did not add folder. Today nothing works! Why not? All paths valid. How do I create new zip file with python and add folders to it?</p>