Feature gate: #![feature(normalize_lexically)]
This is a tracking issue for Path::normalize_lexically
that is used to normalize a path, including ..
parent references, without touching the filesystem.
// std::path impl Path { pub fn normalize_lexically(&self) -> Result<PathBuf, NormalizeError> { }Steps / History
normalize_lexically
#134696PathBuf
have 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?
jieyouxu, folkertdev and liubocflt
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4