public function remove($path) { if (!$this->isDeletable($path)) { return false; } Sharing::deleteByPathRecursively($this->getRelativePath($path), $this->ownerId); if (is_file($path)) { return unlink($path); } elseif ($path != $this->rootDir) { return FileUtils::rrmdir($path); } return false; }