I have a tar.gz file which contains a hierarchy of files, folders and other tar.gz files within them.
I have no idea of the depth of the directory structure, it will vary according to the file
I would like to know a way to write a Python script which will traverse through all the compressed files and extract files with specified file extensions