[nostalgia/scripts/pybb] Remove permission manipulation from rm
This commit is contained in:
parent
127e3f6df0
commit
64b9b6071e
@ -11,10 +11,8 @@ def mkdir(path):
|
||||
|
||||
def rm(path):
|
||||
if (os.path.exists(path) or os.path.islink(path)) and not os.path.isdir(path):
|
||||
os.chmod(path, stat.S_IWRITE)
|
||||
os.remove(path)
|
||||
elif os.path.isdir(path):
|
||||
os.chmod(path, stat.S_IWRITE)
|
||||
shutil.rmtree(path)
|
||||
|
||||
if sys.argv[1] == 'mkdir':
|
||||
|
Loading…
Reference in New Issue
Block a user