aboutsummaryrefslogtreecommitdiffstats
path: root/lib/user/http.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user/http.php')
-rw-r--r--lib/user/http.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/user/http.php b/lib/user/http.php
index 009aa30c6f5..87f3347a236 100644
--- a/lib/user/http.php
+++ b/lib/user/http.php
@@ -90,4 +90,17 @@ class OC_User_HTTP extends OC_User_Backend {
public function userExists($uid){
return $this->matchUrl($uid);
}
+
+ /**
+ * @brief get the user's home directory
+ * @param string $uid the username
+ * @return boolean
+ */
+ public function getHome($uid){
+ if($this->userExists($uid)){
+ return OC_Config::getValue( "datadirectory", OC::$SERVERROOT."/data" ) . '/' . $user;
+ }else{
+ return false;
+ }
+ }
} \ No newline at end of file