From e9cc282a5b9cc585de96177cf7ba5677d5210c22 Mon Sep 17 00:00:00 2001 From: Julius van der Vaart Date: Thu, 5 Nov 2026 09:03:44 +0100 Subject: [PATCH] feat: Add Keka extraction temporaries to exclude list Keka extracts an archive into a temporary .kextraction item and renames it to the final name when extraction finishes. Excluding the pattern keeps the client from synchronizing the incomplete output while Keka is still writing it. The file provider extension receives the same list from the main app, so both sync modes are covered. Assisted-by: ClaudeCode:claude-opus-5-5 Co-Authored-By: Claude Opus 5.5 Signed-off-by: Julius van der Vaart --- sync-exclude.lst | 3 +++ test/testexcludedfiles.cpp | 11 +++++++++++ 2 files changed, 14 insertions(+) diff --git a/sync-exclude.lst b/sync-exclude.lst index dff40a3686..cc755c78d0 100644 --- a/sync-exclude.lst +++ b/sync-exclude.lst @@ -48,6 +48,9 @@ System Volume Information *.filepart *.crdownload +# Keka temporary extraction output, renamed to its final name once extraction finishes. +*.kextraction + *.kate-swp *.gnucash.tmp-* diff --git a/test/testexcludedfiles.cpp b/test/testexcludedfiles.cpp index 8acdec51a6..0473db0a79 100644 --- a/test/testexcludedfiles.cpp +++ b/test/testexcludedfiles.cpp @@ -194,6 +194,17 @@ private Q_SLOTS: QCOMPARE(check_file_full("Test.icml"), CSYNC_NOT_EXCLUDED); QCOMPARE(check_file_full("Test.prproj"), CSYNC_NOT_EXCLUDED); + /* Keka temporary extraction output is excluded, file or folder, including its contents */ + QCOMPARE(check_file_full("Archive.kextraction"), CSYNC_FILE_EXCLUDE_LIST); + QCOMPARE(check_dir_full("Archive.kextraction"), CSYNC_FILE_EXCLUDE_LIST); + QCOMPARE(check_dir_full("subdir/Archive.kextraction"), CSYNC_FILE_EXCLUDE_LIST); + QCOMPARE(check_file_full("Archive.kextraction/inner.txt"), CSYNC_FILE_EXCLUDE_LIST); + + /* The archive and the final extracted folder are NOT excluded */ + QCOMPARE(check_file_full("Archive.zip"), CSYNC_NOT_EXCLUDED); + QCOMPARE(check_dir_full("Archive"), CSYNC_NOT_EXCLUDED); + QCOMPARE(check_file_full("Archive.kextraction.txt"), CSYNC_NOT_EXCLUDED); + /* Not excluded because the pattern .netscape/cache requires directory. */ QCOMPARE(check_file_full(".netscape/cache"), CSYNC_NOT_EXCLUDED);