diff options
Diffstat (limited to 'modules/core/module-world-model.js')
| -rw-r--r-- | modules/core/module-world-model.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/core/module-world-model.js b/modules/core/module-world-model.js index 54a17e4..6e8f3c3 100644 --- a/modules/core/module-world-model.js +++ b/modules/core/module-world-model.js @@ -203,6 +203,11 @@ class WorldModelModule { const entries = fs.ls(path); if (!entries) return; for (const e of entries) { + // /sys is synthesized by ls() on demand and has no node behind it. Walking into it + // counted a synthetic subtree (114 dirs / 146 files in a store that holds 43 files), + // which is the "the counts disagree" report: two different populations were both + // printed as "files". + if (e._virtual) continue; if (e.type === 'file') fileCount++; else { dirCount++; walk(path === '/' ? '/' + e.name : path + '/' + e.name); } } |