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:
1 parent
036bd1862c
commit
e9cc282a5b
2 files changed
+14
No files matched your search
@@ -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-*
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user