-
-
Notifications
You must be signed in to change notification settings - Fork 15.9k
Tracking Issue for normalize_lexically #134694
Copy link
Copy link
Open
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-libs-nominatedNominated for discussion during a libs team meeting.Nominated for discussion during a libs team meeting.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
Description
Activity
Metadata
Metadata
Assignees
Labels
C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCI-libs-nominatedNominated for discussion during a libs team meeting.Nominated for discussion during a libs team meeting.T-libsRelevant to the library team, which will review and decide on the PR/issue.Relevant to the library team, which will review and decide on the PR/issue.
View all comments
Feature gate:
#![feature(normalize_lexically)]This is a tracking issue for
Path::normalize_lexicallythat is used to normalize a path, including..parent references, without touching the filesystem.Public API
Steps / History
normalize_lexically#134696Unresolved Questions
PathBufhave a method that normalizes in-place? Normalizing a path just removes components..path.base_path.join(user_path.normalize_lexically()?)can still escape the base path.The last two can be summarised as: should this strictly require paths to be sub-paths?
Footnotes
https://std-dev-guide.rust-lang.org/feature-lifecycle/stabilization.html ↩