There's this note on the docs for TarFile.extract()
:
Note: The
extract()
method does not take care of several extraction issues. In most cases you should consider using theextractall()
method.
What "extraction issues" is it referring to? Why would I want to use the extractall()
method instead of extract()
when I only have a single file I want to get from the tar file?