3 ms·
> It does. However, in your linked document just below the `extract` function there is `extractall` that actually has a warning that it does /not/ mitigate dire
by masklinn 8y ago
> It does. However, in your linked document just below the `extract` function there is `extractall` that actually has a warning that it does /not/ mitigate directory traversal.
You're misreading the warning. It's saying that the module attempts to mitigate the issue (referring back to ZipFile.extract) but pointing out that this may not be entirely reliable, and thus that as the library user you really should inspect/validate archive paths before doing an on-disk extraction.