{"record":{"id":"0b76b65ec3ee2111","repo":"getgrav/grav","slug":"destination-path-dst-is-empty","errorCode":null,"errorMessage":"Destination path '{$dst}' is empty","messagePattern":"Destination path '(.+?)' is empty","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"system/src/Grav/Framework/Flex/Storage/FolderStorage.php","lineNumber":262,"sourceCode":"\n        return $this->copyFolder($srcPath, $dstPath);\n    }\n\n    /**\n     * {@inheritdoc}\n     * @see FlexStorageInterface::renameRow()\n     * @throws RuntimeException\n     */\n    public function renameRow(string $src, string $dst): bool\n    {\n        if (!$this->hasKey($src)) {\n            return false;\n        }\n\n        $srcPath = $this->getStoragePath($src);\n        $dstPath = $this->getStoragePath($dst);\n        if (!$srcPath || !$dstPath) {\n            throw new RuntimeException(\"Destination path '{$dst}' is empty\");\n        }\n\n        if ($srcPath === $dstPath) {\n            return true;\n        }\n\n        if ($this->hasKey($dst)) {\n            throw new RuntimeException(\"Cannot rename object '{$src}': key '{$dst}' is already taken $srcPath $dstPath\");\n        }\n\n        return $this->moveFolder($srcPath, $dstPath);\n    }\n\n    /**\n     * {@inheritdoc}\n     * @see FlexStorageInterface::getStoragePath()\n     */\n    public function getStoragePath(?string $key = null): ?string","sourceCodeStart":244,"sourceCodeEnd":280,"githubUrl":"https://github.com/getgrav/grav/blob/6040efed04efa69b8209448ed81308e7c24147c2/system/src/Grav/Framework/Flex/Storage/FolderStorage.php#L244-L280","documentation":"Error \"Destination path '{$dst}' is empty\" thrown in getgrav/grav.","triggerScenarios":"Thrown at system/src/Grav/Framework/Flex/Storage/FolderStorage.php:262 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6040efed04efa69b8209448ed81308e7c24147c2","analyzedAt":"2026-08-17T05:07:31.593Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}