You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2021/01/15 23:09:17 UTC
[airavata-django-portal-sdk] branch master updated: AIRAVATA-3362
Fixes to relative path of dir in experiment dir
This is an automated email from the ASF dual-hosted git repository.
machristie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airavata-django-portal-sdk.git
The following commit(s) were added to refs/heads/master by this push:
new fdbfcd0 AIRAVATA-3362 Fixes to relative path of dir in experiment dir
fdbfcd0 is described below
commit fdbfcd0e08a6bf7e815e2b442797d161f5b43ba9
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Fri Jan 15 18:09:07 2021 -0500
AIRAVATA-3362 Fixes to relative path of dir in experiment dir
---
airavata_django_portal_sdk/user_storage.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/airavata_django_portal_sdk/user_storage.py b/airavata_django_portal_sdk/user_storage.py
index 7de1830..e17fe51 100644
--- a/airavata_django_portal_sdk/user_storage.py
+++ b/airavata_django_portal_sdk/user_storage.py
@@ -436,16 +436,16 @@ def list_experiment_dir(request, experiment_id, path=""):
directories_data = []
for d in directories:
dpath = os.path.join(exp_data_path, d)
+ rel_path = os.path.join(path, d)
created_time = datastore.get_created_time(
exp_owner, dpath)
size = datastore.size(exp_owner, dpath)
directories_data.append(
{
"name": d,
- "path": dpath,
+ "path": rel_path,
"created_time": created_time,
"size": size,
- "hidden": dpath == TMP_INPUT_FILE_UPLOAD_DIR,
}
)
files_data = []