use filter=data for extracting when the tar file includes links
Created by: scarlehoff
I really couldn't figure why, but this is solving an issue with the extraction of the postfit
folder (which is a link to the nnfit
folder). Since both postfit
and nnfit
are within the same folder it should be "inside the destination" and, indeed, when extracting with python 3.12, it works fine.
However, with python3.10, if my python installation is in one disk and the share folder is in another one, it seems tarfile
looks at the path and says "I'm extracting a link from /media/other_disk to /media/other_disk/... but /media is not the same device as /media/otherdisk, it must be outside!"