{"record":{"id":"e756b5b35d1ec51d","repo":"thephpleague/flysystem","slug":"unable-to-move-file-from-source-to-destination-a","errorCode":null,"errorMessage":"Unable to move file from $source to $destination as this is a readonly adapter.","messagePattern":"Unable to move file from \\$source to \\$destination as this is a readonly adapter\\.","errorType":"exception","errorClass":"League\\Flysystem\\UnableToMoveFile","httpStatus":null,"severity":"error","filePath":"src/ReadOnly/ReadOnlyFilesystemAdapter.php","lineNumber":59,"sourceCode":"\n    public function deleteDirectory(string $path): void\n    {\n        throw UnableToDeleteDirectory::atLocation($path, 'This is a readonly adapter.');\n    }\n\n    public function createDirectory(string $path, Config $config): void\n    {\n        throw UnableToCreateDirectory::atLocation($path, 'This is a readonly adapter.');\n    }\n\n    public function setVisibility(string $path, string $visibility): void\n    {\n        throw UnableToSetVisibility::atLocation($path, 'This is a readonly adapter.');\n    }\n\n    public function move(string $source, string $destination, Config $config): void\n    {\n        throw new UnableToMoveFile(\"Unable to move file from $source to $destination as this is a readonly adapter.\");\n    }\n\n    public function copy(string $source, string $destination, Config $config): void\n    {\n        throw new UnableToCopyFile(\"Unable to copy file from $source to $destination as this is a readonly adapter.\");\n    }\n\n    public function publicUrl(string $path, Config $config): string\n    {\n        if ( ! $this->adapter instanceof PublicUrlGenerator) {\n            throw UnableToGeneratePublicUrl::noGeneratorConfigured($path);\n        }\n\n        return $this->adapter->publicUrl($path, $config);\n    }\n\n    public function checksum(string $path, Config $config): string\n    {","sourceCodeStart":41,"sourceCodeEnd":77,"githubUrl":"https://github.com/thephpleague/flysystem/blob/b277b5dc3d56650b68904117124e79c851e12376/src/ReadOnly/ReadOnlyFilesystemAdapter.php#L41-L77","documentation":"Error \"Unable to move file from $source to $destination as this is a readonly adapter.\" thrown in thephpleague/flysystem.","triggerScenarios":"Thrown at src/ReadOnly/ReadOnlyFilesystemAdapter.php:59 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":"b277b5dc3d56650b68904117124e79c851e12376","analyzedAt":"2026-08-17T04:28:35.741Z","schemaVersion":2},"datasetVersion":"2026-08-17T09:17:11.063Z"}