We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent1617eb3 commit440441dCopy full SHA for 440441d
tests/helpers/ptrack_helpers.py
@@ -1811,13 +1811,13 @@ def pgdata_content(self, pgdata, ignore_ptrack=True, exclude_dirs=None):
1811
directory_dict['dirs'][directory_relpath]=ContentDir()
1812
1813
# get permissions for every file and directory
1814
-forfile,cfileindirectory_dict['dirs'].items():
1815
-full_path=os.path.join(pgdata,file)
1816
-cfile.mode=os.stat(full_path).st_mode
+fordir,cdirindirectory_dict['dirs'].items():
+full_path=os.path.join(pgdata,dir)
+cdir.mode=os.stat(full_path).st_mode
1817
1818
-forfile,cdirindirectory_dict['files'].items():
+forfile,cfileindirectory_dict['files'].items():
1819
full_path=os.path.join(pgdata,file)
1820
-cdir.mode=os.stat(full_path).st_mode
+cfile.mode=os.stat(full_path).st_mode
1821
1822
returndirectory_dict
1823