diff --git a/rslib/src/media/changetracker.rs b/rslib/src/media/changetracker.rs index fde118384..208f3cbb2 100644 --- a/rslib/src/media/changetracker.rs +++ b/rslib/src/media/changetracker.rs @@ -115,11 +115,14 @@ where continue; } - // ignore large files + // ignore large files and zero byte files let metadata = dentry.metadata()?; if metadata.len() > MEDIA_SYNC_FILESIZE_LIMIT as u64 { continue; } + if metadata.len() == 0 { + continue; + } // remove from mtimes for later deletion tracking let previous_mtime = mtimes.remove(fname.as_ref());