diff options
author | Yorhel <git@yorhel.nl> | 2021-07-19 16:58:34 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2021-07-19 16:58:34 +0200 |
commit | a915fc0836c83c62327824126e85059bb89c1198 (patch) | |
tree | ec6a7266e349ba5f53bac8851a69b5f73f3c5123 | |
parent | f473f3605ee0b72ba3cf13033ae47214518414c7 (diff) |
Fix counting of sizes for new directories
-rw-r--r-- | src/scan.zig | 2 |
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; |