Skip to content

Commit bc9108e

Browse files
committed
silently exclude Thumbs.db
1 parent 1e93a36 commit bc9108e

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/adapters/sqlite.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,10 @@ impl WritingFileAdapter for SqliteAdapter {
122122
_detection_reason: &FileMatcher,
123123
oup: Pin<Box<dyn AsyncWrite + Send>>,
124124
) -> Result<()> {
125+
if ai.filepath_hint.file_name().and_then(|e| e.to_str()) == Some("Thumbs.db") {
126+
// skip windows thumbnail cache
127+
return Ok(());
128+
}
125129
let oup_sync = SyncIoBridge::new(oup);
126130
tokio::task::spawn_blocking(|| synchronous_dump_sqlite(ai, oup_sync))
127131
.await?

src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl ToString for MaxArchiveRecursion {
3838
}
3939
impl Default for MaxArchiveRecursion {
4040
fn default() -> Self {
41-
MaxArchiveRecursion(4)
41+
MaxArchiveRecursion(5)
4242
}
4343
}
4444

0 commit comments

Comments
 (0)