title: python : unzipping error 'no such file or directory'
body: <p>I have zip file downloaded from website. I wanted to make script that rename zip file and before unzip, it checks how many files are in it and unzip it.</p>
  
  <p>The problem is that zip file is in the directory but it keep giving me error that 
  'FileNotFoundError: [Errno 2] No such file or directory: 'filename.zip''
  I assumed that It might be caused by file name because I use ubuntu and when I downloaded the file, the name was broken because it was not English. so I changed it into numbers (ex:20176) but still getting this error.</p>
  
  <p>my script
  path means absolute path. </p>
  
  <pre><code>    data_type = '{}{}'.format('201706', '.zip')
      filename = [i for i in os.listdir('user/directory')]
      filename.sort(key=lambda ctime: ctime[0])
      downloaded = str(filename[0])
  
      old = os.path.join('user/directory', downloaded)
      new = os.path.join('user/directory', data_type)
      os.rename(old, new)
  
      zip = ZipFile(data_type)
      archived_files = zip.namelist()
      amount = len(archived_files)
  </code></pre>