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.git


The following commit(s) were added to refs/heads/master by this push:
     new e7d6638  Create intermediate dirs as well when creating exp directory
e7d6638 is described below

commit e7d6638b49d27e218fb67903cbb8fed311e1cddf
Author: Marcus Christie <machr...@iu.edu>
AuthorDate: Thu Feb 22 12:46:28 2018 -0500

    Create intermediate dirs as well when creating exp directory
---
 django_airavata/apps/api/datastore.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/django_airavata/apps/api/datastore.py 
b/django_airavata/apps/api/datastore.py
index fb09bfa..dc1d5f4 100644
--- a/django_airavata/apps/api/datastore.py
+++ b/django_airavata/apps/api/datastore.py
@@ -77,8 +77,8 @@ def get_experiment_dir(username, project_name, 
experiment_name):
         experiment_data_storage.get_valid_name(experiment_name))
     experiment_dir = experiment_data_storage.path(experiment_dir_name)
     if not experiment_data_storage.exists(experiment_dir):
-        os.mkdir(experiment_dir,
-                 mode=experiment_data_storage.directory_permissions_mode)
+        os.makedirs(experiment_dir,
+                    mode=experiment_data_storage.directory_permissions_mode)
         # os.mkdir mode isn't always respected so need to chmod to be sure
         os.chmod(experiment_dir,
                  mode=experiment_data_storage.directory_permissions_mode)

-- 
To stop receiving notification emails like this one, please contact
machris...@apache.org.

Reply via email to