summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/scan.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scan.zig b/src/scan.zig
index 7ec36b1..dfa4e8c 100644
--- a/src/scan.zig
+++ b/src/scan.zig
@@ -204,7 +204,7 @@ const ScanDir = struct {
// entire subtree, which, in turn, would break all shared hardlink
// sizes. The current approach may result in incorrect sizes after
// refresh, but I expect the difference to be fairly minor.
- if (e.etype != .dir and (e.blocks != stat.blocks or e.size != stat.size)) {
+ if (!(e.etype == .dir and e.counted) and (e.blocks != stat.blocks or e.size != stat.size)) {
e.delStats(parents);
e.blocks = stat.blocks;
e.size = stat.size;