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

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

matplotlib support failed in PyCharm on OSX -

python - Matplotlib: TypeError: 'AxesSubplot' object is not callable -