mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
[fix] Recursive chmod was broken
This commit is contained in:
parent
d057a1aa53
commit
9bcee881eb
1 changed files with 2 additions and 2 deletions
|
@ -101,9 +101,9 @@ def chmod(path, mode, fmode=None, recursive=False):
|
||||||
fmode = mode
|
fmode = mode
|
||||||
for root, dirs, files in os.walk(path):
|
for root, dirs, files in os.walk(path):
|
||||||
for d in dirs:
|
for d in dirs:
|
||||||
os.chmod(path, mode)
|
os.chmod(os.path.join(root,d), mode)
|
||||||
for f in files:
|
for f in files:
|
||||||
os.chmod(path, fmode)
|
os.chmod(os.path.join(root,f), fmode)
|
||||||
|
|
||||||
|
|
||||||
def rm(path, recursive=False, force=False):
|
def rm(path, recursive=False, force=False):
|
||||||
|
|
Loading…
Reference in a new issue