AIRAVATA-3362 Fixes to relative path of dir in experiment dir
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 @@
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 = []