Skip to content

Path::components strip . under the hood #16

@hyf0

Description

@hyf0

This behavior is part of spec.

rust-lang/rust#23229

This makes the following code

sugar_path/src/utils.rs

Lines 29 to 31 in 41fce88

Component::CurDir => {
has_resolved_dots = true;
}

unreliable for detecting whether the dots are resolved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions