Corrected permissions for files
authorThierry Florac <thierry.florac@onf.fr>
Fri, 02 Jun 2017 16:50:45 +0200
changeset 8 2025dd476ece
parent 7 f35ba3000688
child 9 20da2f40949b
Corrected permissions for files
hooks/post_gen_project.py
--- a/hooks/post_gen_project.py	Fri Jun 02 16:02:45 2017 +0200
+++ b/hooks/post_gen_project.py	Fri Jun 02 16:50:45 2017 +0200
@@ -58,7 +58,7 @@
             os.chown(target, user_id, group_id)
         except PermissionError:
             print("WARNING: Can't set permissions for directory {0}".format(target))
-    for filename in dirs:
+    for filename in files:
         try:
             target = os.path.join(VAR_DIRECTORY, root, filename)
             os.chown(target, user_id, group_id)