Repository navigation
refactor(stdune): rename and move shared tree traversal - #16807
Merged
Merged
Conversation
Alizter
force-pushed
the
push-lmpxwpnyvosz
branch
3 times, most recently
from
October 26, 2026 21:08
caafd8f to
8a88e16
Compare
rgrinberg
approved these changes
Oct 27, 2026
Rename Tree_copy.copy to Tree_traversal.traverse and its copy_file callback to on_file. The traversal also supports symlinking and hardlinking, so its names should not imply that it always copies files. Document the source-to-destination mapping, root handling, and differences from Fpath.traverse in the interface. Keep the API focused on the needs of its two destination-tree construction callers. Update both the sandbox and copy-action call sites without changing traversal, permissions, or symlink handling. Keep this naming cleanup separate from the hardlink sandbox fix in ocaml#16675. Signed-off-by: Ali Caglayan <[email protected]>
Move Tree_traversal to Stdune and re-export it there. The implementation only uses filesystem and path utilities already provided by Stdune; remove the engine Import opens from its implementation and interface. Keep the API, traversal behavior, and documentation unchanged. Existing engine callers use the module through their Stdune import without any call-site changes. Signed-off-by: Ali Caglayan <[email protected]>
Alizter
force-pushed
the
push-lmpxwpnyvosz
branch
from
October 28, 2026 13:52
8a88e16 to
e00b275
Compare
Alizter
marked this pull request as ready for review
October 28, 2026 15:34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Rename
Tree_copytoTree_traversaland move it to Stdune. No behavior change.Follow-up to #16675.