Don't use dir a variable name

This commit is contained in:
Melissa LeBlanc-Williams 2022-11-15 10:38:41 -08:00
parent 8a9018a95f
commit 66b78dc9e4

View file

@ -391,8 +391,8 @@ class Shell:
location = self.path(location) location = self.path(location)
if recursive and os.path.isdir(location): if recursive and os.path.isdir(location):
for root, dirs, files in os.walk(location): for root, dirs, files in os.walk(location):
for dir in dirs: for directory in dirs:
shutil.chown(os.path.join(root, dir), user, group) shutil.chown(os.path.join(root, directory), user, group)
for file in files: for file in files:
shutil.chown(os.path.join(root, file), user, group) shutil.chown(os.path.join(root, file), user, group)
else: else: