I have tar.gz with the following structure:
tarFile.tar.gz
├── folder1
│ ├── folder2
│ |-- folder3
|-- folder
|--img1.jpg
|--img2.jpg
|--img3.jpg
I need to store the imgs in different directories. How can I parse through the tar file and place these images into different directories without extracting the tar file first ?