Skip to content
Permalink
Browse files
AIRAVATA-3420 Return full path to created directory
  • Loading branch information
machristie committed May 4, 2021
1 parent e14b830 commit 4d4b8470b0c56f637d78c631dff9c6a5cea27932
Showing 1 changed file with 2 additions and 2 deletions.
@@ -107,7 +107,7 @@ def create_dirs(self, resource_path, dir_names=[], create_unique=False):
# Special case: handle creating user's home directory
if resource_path == '' and not datastore.exists(''):
datastore.create_user_dir('')
return self.storage_resource_id, ''
return self.storage_resource_id, datastore.path(resource_path)
if not datastore.exists(resource_path):
raise ObjectDoesNotExist(f"User resource_path does not exist {resource_path}")
valid_dir_names = []
@@ -119,7 +119,7 @@ def create_dirs(self, resource_path, dir_names=[], create_unique=False):
# Make sure path is unique if it already exists
final_path = datastore.get_available_name(final_path)
datastore.create_user_dir(final_path)
return self.storage_resource_id, final_path
return self.storage_resource_id, datastore.path(final_path)

@property
def datastore(self):

0 comments on commit 4d4b847

Please sign in to comment.