title: why Python zipfile doesn't unzip these files?
body: <p>I have some code that works for some files but not others. I am baffled! I took the same file and copied ten times with different names to simulate a production case. </p>
  
  <p>The files would be in two different paths. path_one works, but path_two doesn't. </p>
  
  <pre><code>import zipfile
  
  path_one = "/tmp/my_files_one"
  path_two = "/tmp/my_files_two"
  
  for file in os.listdir(path_one):
      print("xx", file)
  #    if zipfile.is_zipfile(file):
  #        print("in here")
      with zipfile.ZipFile(file, 'r') as zipo:
          zipo.extractall(path=path_one)
  </code></pre>
  
  <p>but if I use path_two, I get this error: </p>
  
  <pre><code>xx file_two.zip
  Traceback (most recent call last):
    File "./this_script.py", line 95, in &lt;module&gt;
      with zipfile.ZipFile(file, 'r') as zipo:
    File "/usr/lib64/python3.4/zipfile.py", line 923, in __init__
      self.fp = io.open(file, modeDict[mode])
  FileNotFoundError: [Errno 2] No such file or directory: 'file_two.zip'
  </code></pre>
  
  <p>The file is most certainly in the path. I had uncommented the is_zipfile part because it wasn't true, even though it's true for other files. </p>
  
  <p>Why?? </p>