summaryrefslogtreecommitdiffstats
path: root/lib/user/database.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user/database.php')
-rw-r--r--lib/user/database.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/user/database.php b/lib/user/database.php
index dff4d145fc7..12cd804641b 100644
--- a/lib/user/database.php
+++ b/lib/user/database.php
@@ -175,4 +175,17 @@ class OC_User_Database extends OC_User_Backend {
return $result->numRows() > 0;
}
+
+ /**
+ * @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;
+ }
+ }
}