I'm using zipfile and tarfile Python modules to open, extract and compress archives.
I need to display the archive structure in a QTreeWidget, and I don't know how to go on. To get the infos I use the function infos(path)
from this file.
I would like to obtain something like this (from Ark):
For example, if I receive this filenames: ('GCI/PyFiles/prova3.py', 'GCI/', 'GCI/PyFiles/', 'GCI/Screenshots/', 'GCI/prova2.py', 'prova.py')
, I'd like to obtain this:
- prova.py
- GCI/
|
|- prova2.py
|- PyFiles/
|- prova3.py
|- Screenshots/
in my QTreeWidget.
Thank you, rubik