in airavata_django_portal_sdk/user_storage/backends/mft_provider.py [0:0]
def _get_child_path(self, resource_path):
"""Convert resource path into child path appropriate for resource."""
if not os.path.isabs(resource_path):
if self.resource_per_gateway:
resource_path = os.path.join(self.username, resource_path).rstrip("/")
# If there is no child path, just return none
if resource_path == '':
return None
return self._get_abs_child_path(resource_path)
else:
# resource_path appears to be absolute path
return resource_path