Skip to content

renamed directories should propagate to their children in the inodetable - #53

Merged
wfraser merged 1 commit into
masterfrom
rename-dir
May 18, 2026
Merged

renamed directories should propagate to their children in the inodetable#53
wfraser merged 1 commit into
masterfrom
rename-dir

Conversation

@wfraser

@wfraser wfraser commented May 12, 2026

Copy link
Copy Markdown
Owner

Fixes #51

Changing to a BTreeMap allows paths to be iterated in sorted order. Paths are sorted hierarchically, so children strictly follow parents. Therefore on a rename we can iterate the map and see if any other paths have the renamed one as a prefix, and rename them as well.

@wfraser
wfraser force-pushed the rename-dir branch 3 times, most recently from 035d353 to afe4051 Compare May 13, 2026 19:53
@wfraser
wfraser merged commit 936fe91 into master May 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug in InodeTable when renaming a parent folder: descendants are not updated

1 participant