fix: move CAS node files into nodes/ subdirectory (#84) #87

Merged
xiaomo merged 1 commits from fix/84-nodes-subdirectory into main 2026-06-06 23:46:08 +00:00

1 Commits

Author SHA1 Message Date
xiaoju 3b089c2291 fix: move CAS node files into nodes/ subdirectory
CI / check (pull_request) Successful in 1m45s
Restructure the FsStore on-disk layout so that all `<HASH>.bin` node
files live under a `nodes/` subdirectory of the store root, instead of
being interleaved with metadata directories (`_index/`, `_store.db`,
`_meta`) at the top level.

Pre-existing flat-layout stores are auto-migrated on first open: any
`.bin` files found in the store root are renamed (not copied) into
`nodes/`. Migration is idempotent and safe to re-run.

Fixes #84
2026-06-06 23:37:19 +00:00