Don't use dir a variable name
This commit is contained in:
parent
8a9018a95f
commit
66b78dc9e4
1 changed files with 2 additions and 2 deletions
|
|
@ -391,8 +391,8 @@ class Shell:
|
|||
location = self.path(location)
|
||||
if recursive and os.path.isdir(location):
|
||||
for root, dirs, files in os.walk(location):
|
||||
for dir in dirs:
|
||||
shutil.chown(os.path.join(root, dir), user, group)
|
||||
for directory in dirs:
|
||||
shutil.chown(os.path.join(root, directory), user, group)
|
||||
for file in files:
|
||||
shutil.chown(os.path.join(root, file), user, group)
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue