Пример #1
0
 /**
  * get the users home folder to mount
  *
  * @return string
  */
 public function getHome()
 {
     if (!$this->home) {
         if ($this->backend->implementsActions(\OC\User\Backend::GET_HOME) and $home = $this->backend->getHome($this->uid)) {
             $this->home = $home;
         } elseif ($this->config) {
             $this->home = $this->config->getSystemValue('datadirectory') . '/' . $this->uid;
         } else {
             $this->home = \OC::$SERVERROOT . '/data/' . $this->uid;
         }
     }
     return $this->home;
 }