/**
  * Get the cache mount for a user
  *
  * @param IUser $user
  * @param IStorageFactory $loader
  * @return \OCP\Files\Mount\IMountPoint[]
  */
 public function getHomeMountForUser(IUser $user, IStorageFactory $loader)
 {
     $arguments = ['user' => $user];
     if (\OC\Files\Cache\Storage::exists('local::' . $user->getHome() . '/')) {
         $arguments['legacy'] = true;
     }
     return new MountPoint('\\OC\\Files\\Storage\\Home', '/' . $user->getUID(), $arguments, $loader);
 }
예제 #2
0
 private function getPathToCertificates()
 {
     $path = $this->user ? $this->user->getHome() . '/files_external/' : '/files_external/';
     return $path;
 }
예제 #3
0
 /**
  * Get the path to the certificate bundle for this user
  *
  * @return string
  */
 public function getCertificateBundle()
 {
     return $this->user->getHome() . '/files_external/rootcerts.crt';
 }