Skip to content

Commit 4f6802d

Browse files
committed
Screw it, everyone can delete the file.
1 parent e20768b commit 4f6802d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

librarian_server/stores/local.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,15 @@ def remove_readonly(func, path, _):
2828
Clear the readonly bit and reattempt the removal, see
2929
https://docs.python.org/3/library/shutil.html#rmtree-example
3030
"""
31-
os.chmod(path, stat.S_IREAD | stat.S_IWRITE | stat.S_IRGRP | stat.S_IWGRP)
31+
os.chmod(
32+
path,
33+
stat.S_IREAD
34+
| stat.S_IWRITE
35+
| stat.S_IRGRP
36+
| stat.S_IWGRP
37+
| stat.S_IROTH
38+
| stat.S_IWOTH,
39+
)
3240
func(path)
3341

3442

0 commit comments

Comments
 (0)