title: Unzipp recursively even when the zip file has no folders
body: <p>I'm trying to make a script which should unzipp a bunch of files. For some of these zip files, there isn't a structure made of folders. That means all the files are placed inside the archive o the same level and when I'm trying to unzipp them, all the files contained in the zip files are extracted at the same level. Thus all the files are mixed together and not placed individualy in the corresponding archive.</p>
  
  <p>My idea is to create a new folder named from the corresponding zip Archive and do it for all the zip files included in the working directory.
  However, I don't get it event if I'm using makedirs().</p>
  
  <p>Here is my code :</p>
  
  <pre><code>os.chdir(directory)
  cwd = os.getcwd()
  print("Working directory :",cwd)
  
  for ArchivesZip in glob.glob(os.path.join(directory,'*.zip')):
      zip_ref = zipfile.ZipFile(ArchivesZip,'r')
      dir = os.path.join("extractions",ArchivesZip)
      if not os.path.exists(dir):
          os.mkdir(ArchivesZip)
          zip_ref.extractall(dir)
  </code></pre>
  
  <p>Thanks for your advices...</p>