Skip to content

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

Open
wfraser wants to merge 1 commit into
masterfrom
rename-dir
Open

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

Conversation

@wfraser
Copy link
Copy Markdown
Owner

@wfraser wfraser commented May 12, 2026

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
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