Skip to content

Commit 0325789

Browse files
committed
fix(lockedFiles): try to silently ignore locked files
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
1 parent f63ee09 commit 0325789

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/csync/csync_exclude.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ static CSYNC_EXCLUDE_TYPE _csync_excluded_common(const QString &path, bool exclu
167167
}
168168
}
169169

170+
if (OCC::FileSystem::isFileLocked(path, OCC::FileSystem::LockMode::SharedRead)) {
171+
return CSYNC_FILE_SILENTLY_EXCLUDED;
172+
}
173+
170174
if (csync_is_windows_reserved_word(bname)) {
171175
return CSYNC_FILE_SILENTLY_EXCLUDED;
172176
}

0 commit comments

Comments
 (0)