Skip to content

Commit e2f01de

Browse files
committed
fix(logs): reduce log level for detected file system changes
work around our inability to handle deleted items inside a folder that sync engine is removing Signed-off-by: Matthieu Gallien <[email protected]>
1 parent d289723 commit e2f01de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libsync/propagatorjobs.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
5656

5757
qCInfo(lcPropagateLocalRemove()) << "delete" << absolute;
5858

59+
Q_EMIT propagator()->touchedFile(absolute);
60+
5961
const auto success = FileSystem::removeRecursively(absolute,
6062
[&deleted](const QString &path, bool isDir) {
6163
// by prepending, a folder deletion may be followed by content deletions
@@ -66,7 +68,6 @@ bool PropagateLocalRemove::removeRecursively(const QString &path)
6668
[this] (const QString &itemPath, QString *removeError) -> bool {
6769
auto result = false;
6870

69-
Q_EMIT propagator()->touchedFile(itemPath);
7071
if (_deleteToClientTrashBin.contains(itemPath)) {
7172
result = FileSystem::moveToTrash(itemPath, removeError);
7273
if (!result) {

0 commit comments

Comments
 (0)