Skip to content
Snippets Groups Projects
Commit cdf3c0eb authored by sveseli's avatar sveseli
Browse files

recursive fix for subdirectory permission issue

parent bf607246
No related branches found
No related tags found
No related merge requests found
...@@ -140,10 +140,12 @@ class ExperimentManager(Singleton): ...@@ -140,10 +140,12 @@ class ExperimentManager(Singleton):
OsUtility.chmodPath(filePath, fileMode=self.FILE_PERMISSIONS_MODE) OsUtility.chmodPath(filePath, fileMode=self.FILE_PERMISSIONS_MODE)
self.logger.debug('Changing group owner for %s to %s' % (filePath, experimentName)) self.logger.debug('Changing group owner for %s to %s' % (filePath, experimentName))
self.platformUtility.changePathGroupOwner(filePath, experimentName) self.platformUtility.changePathGroupOwner(filePath, experimentName)
# Recursively modify subdirectory permissions
dirPath = os.path.dirname(filePath) dirPath = os.path.dirname(filePath)
if dirPath != storageDirectory: while (os.path.abspath(dirPath) != os.path.abspath(storageDirectory)):
self.logger.debug('Changing group owner for experiment subdirectory %s to %s' % (dirPath, experimentName)) self.logger.debug('Changing group owner for experiment subdirectory %s to %s' % (dirPath, experimentName))
self.platformUtility.changePathGroupOwner(dirPath, experimentName) self.platformUtility.changePathGroupOwner(dirPath, experimentName)
dirPath = os.path.dirname(dirPath)
self.logger.debug('Processing file %s' % filePath) self.logger.debug('Processing file %s' % filePath)
self.fileProcessingManager.processFile(fileInfo) self.fileProcessingManager.processFile(fileInfo)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment