i want to extract all files from multiple tar-archives, but whatever i do, it won't work. Lets say, i have two tar files in C:\Temp. So i thought, all i have to do is to get a list of the *.tar files in C:\temp, and extract it with a loop:
import glob
import tarfile
archivelist = glob.glob('C:\\Temp\\*.tar')
for x in archivelist:
tar=tarfile.open(archivelist)
tar.extractall()
tar.close()
What is the problem? Even after hours of searching, i couldn't find a helpful example...
Thanks!