mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 21:15:55 +03:00
make folder read-write before deleting it
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
This commit is contained in:
parent
4844f326c1
commit
ff9953b36b
1 changed files with 1 additions and 0 deletions
|
@ -60,6 +60,7 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
|
||||||
QString absolute = propagator()->fullLocalPath(_item->_file + path);
|
QString absolute = propagator()->fullLocalPath(_item->_file + path);
|
||||||
QStringList errors;
|
QStringList errors;
|
||||||
QList<QPair<QString, bool>> deleted;
|
QList<QPair<QString, bool>> deleted;
|
||||||
|
FileSystem::setFolderPermissions(absolute, FileSystem::FolderPermissions::ReadWrite);
|
||||||
bool success = FileSystem::removeRecursively(
|
bool success = FileSystem::removeRecursively(
|
||||||
absolute,
|
absolute,
|
||||||
[&deleted](const QString &path, bool isDir) {
|
[&deleted](const QString &path, bool isDir) {
|
||||||
|
|
Loading…
Reference in a new issue