flysystem-azure-blob-storage icon indicating copy to clipboard operation
flysystem-azure-blob-storage copied to clipboard

Unable to move or copy files

Open lesander opened this issue 3 years ago • 0 comments

Moving or copying files does not seem to work with the storage adapter:

>>> $disk->assertAbsent("Background.png")
League\Flysystem\FileExistsException with message 'File already exists at path: Background.png'
>>> $disk->assertPresent("BackgroundNew.png")
League\Flysystem\FileNotFoundException with message 'File not found at path: BackgroundNew.png'

>>> $disk->copy("Background.png", "BackgroundNew.png")
MicrosoftAzure\Storage\Common\Exceptions\ServiceException with message 'Fail:
Code: 404
Value: The specified resource does not exist.
details (if any): <?xml version="1.0" encoding="utf-8"?><Error><Code>CannotVerifyCopySource</Code><Message>The specified resource does not exist.
RequestId:XXX
Time:2022-04-11T20:50:03.8851651Z</Message></Error>.'
>>> 

>>> $disk->move("Background.png", "BackgroundNew.png")
MicrosoftAzure\Storage\Common\Exceptions\ServiceException with message 'Fail:
Code: 404
Value: The specified resource does not exist.
details (if any): <?xml version="1.0" encoding="utf-8"?><Error><Code>CannotVerifyCopySource</Code><Message>The specified resource does not exist.
RequestId:XXX
Time:2022-04-11T20:54:18.4939409Z</Message></Error>.'

lesander avatar Apr 11 '22 20:04 lesander