Skip to content

Commit

Permalink
make folder read-write before deleting it
Browse files Browse the repository at this point in the history
Signed-off-by: Matthieu Gallien <[email protected]>
  • Loading branch information
mgallien committed Mar 11, 2024
1 parent fdccb6a commit 7c3410e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsync/propagatorjobs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
QString absolute = propagator()->fullLocalPath(_item->_file + path);
QStringList errors;
QList<QPair<QString, bool>> deleted;
FileSystem::setFolderPermissions(absolute, FileSystem::FolderPermissions::ReadWrite);
bool success = FileSystem::removeRecursively(
absolute,
[&deleted](const QString &path, bool isDir) {
Expand Down

0 comments on commit 7c3410e

Please sign in to comment.