🐛 Bug Report: Storage File deleted accidentally from digital ocean spaces on move #5814
Open
2 tasks done
Labels
backlog
Issues waiting in the backlog
bug
Something isn't working
product / storage
Fixes and upgrades for the Appwrite Storage.
👟 Reproduction steps
Storage::setDevice('files', new DOSpaces('bla', params...);
$device = Storage::getDevice('files');
$device->move($from, $to);
in case
$from === $to
are accidentally the same, the file gets deleted.
👍 Expected behavior
An Exception should be thrown.
👎 Actual Behavior
The $from file gets DELETED
🎲 Appwrite version
Appwrite Cloud
💻 Operating system
MacOS
🧱 Your Environment
No response
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: