Skip to content

utils.py: Change permissions for rootpath in `_force_rmtree`

Shashwat Dalal requested to merge shashwatdalal/tar-file-extraction into master

Description of the MR

As described in #912 (closed), extracting a tarball that has read-only permissions for ./ will change the permissions associated with the directory. This poses a problem if the directory it is extracted to is a tmp_dir which is intended to be deleted after extraction.

Proposed Changes

Get _force_rmtree to chmod +w the root directory.

This merge request, when approved, will close: #912 (closed)


Edited by Shashwat Dalal

Merge request reports