pub fn filesystem_path(
root: &Path,
repository_path: &str,
) -> Result<PathBuf, WorktreeCopyError>Expand description
What: The native path of one validated repository path under a filesystem root. Why: Every filesystem access of the copy goes through this join, so the validation cannot be skipped.
In TS you’d write (pseudocode):
join(root, ...repositoryPath.split('/'));