Skip to content

normalize_lexically should mention other functions that do basic normalization #142931

@lolbinarycat

Description

@lolbinarycat

Location

https://doc.rust-lang.org/nightly/std/path/struct.Path.html#method.normalize_lexically

Summary

both the PartialEq impl for Path and Path::components will normalize away non-leading . and duplicate/trailing slashes. This is "good enough" for many applications, such as choosing a specific file in a tarball to extract.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-libsRelevant to the library team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions