Skip to content
Snippets Groups Projects
Commit 7a2637bb authored by cramakri's avatar cramakri
Browse files

MINOR: Made logic to find the ibrain dropbox directory more robust

SVN: 24224
parent 8c2daf33
No related branches found
No related tags found
No related merge requests found
......@@ -182,7 +182,10 @@ class RegistrationConfirmationUtils(object):
""" Returns a directory 3 levels above the incoming directory """
def _getTopLevelDir(self, incoming):
return File(incoming).getParentFile().getParentFile().getParent()
threadParameters = service.getRegistratorContext().getGlobalState().getThreadParameters()
incomingDirectory = threadParameters.getIncomingDataDirectory()
return incomingDirectory.getParentFile().getParent()
# return File(incoming).getParentFile().getParentFile().getParent()
def _getDuplicatedDatasetsDir(self, incoming):
return self._getTopLevelDir(incoming) + "/" + self.DUPLICATED_DATASETS_DIRECTORY
......
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