python - ZipFile: extract only the subfolder, not the whole folder -


is possible extract subfolder archive, rather whole folder?

i.e. : have .zip/.tar.gz file named my_archive, has inside folder folder_1. folder_1 has inside subfolder_1, subfolder_2 , subfolder_3. want directly extract subfolder_1 , subfolder_2. how do it?

edit:it ok if copy folder_3 well, important part go directly inside folder_1


Comments

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -