Skip to content

[REQUEST] Move files to trash instead of deleting them #9001

@tbarbette

Description

@tbarbette

Due to a problem in the RAID array backing my ownCloud server, some files were thought to be received but were actually not written on the disk. As a consequence after fixing the problem and running occ files:scan the files were thought to be removed on the server.

Then, the sync made ownCloud clients delete all the concerned files. This happened before any backup could be made as it was all the recent files sent by clients, and therefore resulted in a dramatic loss.

To prevent this kind of scenario, it would be interesting to have an option to move the local files to the trash instead of permanently deleting the files.


TODO:
Remove

bool FileSystem::moveToTrash(const QString &fileName, QString *errorString)
and replace its usage with https://doc.qt.io/qt-5/qfile.html#moveToTrash

Metadata

Metadata

Assignees

Labels

Highlightp2-highEscalation, on top of current planning, release blocker

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions