I'm having a folder structure like this
Parent folder
Folder1
1.txt
2.msg
...
Folder2
1.txt
2.py
...
My current approach is using shutil.make_archive I'm compressing the parent folder (eg: 13_03_2024.zip).
Problem is when extracting its showing
Parent folder >> folder1,folder2
Expected is only folder1, folder2
Could someone please help me with this. Thanks in advance!!
I manually created 'test' directory in my Downloads folder and add your structure.
After running this code I extracted it successfully by selecting "Extract here..." - no parent folder
Also can be extracted by shutil: