Can anyone please help me to advise how to loop through a Zip file that contains child zip files (and even more sub folders in zipped format) and still maintain the folder structure after unzipping them? I want to attain this by linux script or Python 2.7 (not Python 3)
Basically, below is what I have:
ZIPPED File Structure
--CLASS1.zip
--SUBJECT1.zip
--SUBJECT2.zip
--SUBJECT3.zip
--SUBJECT4.zip
--CLASS2.zip
--SUBJECT1.zip
--SUBJECT2.zip
--SUBJECT3.zip
--SUBJECT4.zip
--CLASS3.zip
--SUBJECT1.zip
--SUBJECT2.zip
--SUBJECT3.zip
--SUBJECT4.zip
The level of zipping might go further but I gave just for illustration purpose. I want to maintain the same directory structure even after Unzipping like shown below:
--CLASS1
--SUBJECT1
--SUBJECT2
--SUBJECT3
--SUBJECT4
--CLASS2
--SUBJECT1
--SUBJECT2
--SUBJECT3
--SUBJECT4
--CLASS3
--SUBJECT1
--SUBJECT2
--SUBJECT3
--SUBJECT4
Please suggest the best possible way to attain this.