title: How to copy a file in a zipfile into a certain directory?
body: <p>I need only one subfile in each of 500 zipfiles, the paths are the same, like:</p>
  
  <pre><code>120132.zip/A/B/C/target_file
  212332.zip/A/B/C/target_file
  ....
  </code></pre>
  
  <p>How can I copy all these target files into one directory? Keeping the entire paths in the new directory will be the best, which I mean is:</p>
  
  <pre><code>target_dir/
      120132/A/B/C/target_file
      212332/A/B/C/target_file
      ......
  </code></pre>
  
  <p>I tried it with Python modules <em>zipfile</em> and <em>shutil</em> </p>
  
  <p>However, <strong>copyfile</strong> from <em>shutil</em> takes the entire path as argument but when I tried to directly copy the target file it will raise filenotfind error. When unzipped by the zipfile.Zipfile, the target file will be accessible but <em>copyfile</em> becomes invalid.</p>
  
  <p>How can I do this correctly and efficiently ?</p>