airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata-php-gateway git commit: creating user directory if not exists
Date Tue, 08 Mar 2016 18:00:46 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 0592df7a3 -> e3ef1269c


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/develop
Commit: e3ef1269cd6ce6ff4ff894914f2578e4fc494431
Parents: 0592df7
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Tue Mar 8 13:00:43 2016 -0500
Committer: scnakandala <supun.nakandala@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');


Mime
View raw message