[V3 Utils] fix files not being chmodded (#1578)

This commit is contained in:
palmtree5 2018-05-03 22:10:56 -08:00 committed by Kowlin
parent 95ef5d6348
commit ee7b0cf730

View File

@ -22,4 +22,6 @@ def safe_delete(pth: Path):
os.chmod(root, 0o755)
for d in dirs:
os.chmod(os.path.join(root, d), 0o755)
for f in files:
os.chmod(os.path.join(root, f), 0o755)
shutil.rmtree(str(pth), ignore_errors=True)