storagesService->getStorage($this->numericExternalStorageId); // remove "/$user/files" prefix $targetParts = explode('/', trim($target, '/'), 3); $storage->setMountPoint($targetParts[2]); $this->storagesService->updateStorage($storage); $this->setMountPoint($target); return true; } /** * Remove the mount points * * @return bool */ public function removeMount() { $this->storagesService->removeStorage($this->numericExternalStorageId); return true; } }