use OC\Files\Mount\Manager;
use OC\Files\Mount\MountPoint;
use OC\Hooks\PublicEmitter;
+use OC\User\NoUserException;
use OCP\Files\Config\IUserMountCache;
use OCP\Files\IRootFolder;
use OCP\Files\NotFoundException;
*
* @param string $userId user ID
* @return \OCP\Files\Folder
- * @throws \OC\User\NoUserException
+ * @throws NoUserException
+ * @throws NotPermittedException
*/
public function getUserFolder($userId) {
$userObject = $this->userManager->get($userId);
'app' => 'files',
]
);
- throw new \OC\User\NoUserException('Backends provided no user object');
+ throw new NoUserException('Backends provided no user object');
}
$userId = $userObject->getUID();
namespace OCP\Files;
use OC\Hooks\Emitter;
+use OC\User\NoUserException;
/**
* Interface IRootFolder
*
* @param string $userId user ID
* @return \OCP\Files\Folder
+ * @throws NoUserException
+ * @throws NotPermittedException
+ *
* @since 8.2.0
*/
public function getUserFolder($userId);