You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2016/03/11 08:00:28 UTC

[12/21] airavata-php-gateway git commit: creating user directory if not exists

creating user directory if not exists


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/e3ef1269
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/e3ef1269
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/e3ef1269

Branch: refs/heads/master
Commit: e3ef1269cd6ce6ff4ff894914f2578e4fc494431
Parents: 0592df7
Author: scnakandala <su...@gmail.com>
Authored: Tue Mar 8 13:00:43 2016 -0500
Committer: scnakandala <su...@gmail.com>
Committed: Tue Mar 8 13:00:43 2016 -0500

----------------------------------------------------------------------
 app/controllers/AccountController.php | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/e3ef1269/app/controllers/AccountController.php
----------------------------------------------------------------------
diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php
index 835d19d..0205d58 100755
--- a/app/controllers/AccountController.php
+++ b/app/controllers/AccountController.php
@@ -225,6 +225,13 @@ class AccountController extends BaseController
                 //creating a default project for user
                 ProjectUtilities::create_default_project($username);
             }
+
+            $dirPath = Config::get('pga_config.airavata')['experiment-data-absolute-path'] . "/" . Session::get('username');
+            if(!file_exists($dirPath)){
+                $old_umask = umask(0);
+                mkdir($dirPath, 0777, true);
+                umask($old_umask);
+            }
         }catch (Exception $ex){
             CommonUtilities::print_error_message("Unable to Connect to the Airavata Server Instance!");
             return View::make('home');