feat: Add Keka extraction temporaries to exclude list

Keka extracts an archive into a temporary <name>.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 <[email protected]>
Signed-off-by: Julius van der Vaart <[email protected]>
This commit is contained in:
Julius van der VaartandClaude Opus 5.5 authored and Claudio Cambra committed 2026-11-06 10:51:03 +08:00
1 parent 036bd1862c
commit e9cc282a5b
2 files changed
+14

No files matched your search

+3
View File
@@ -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-*
+11
View File
@@ -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);