Skip to content

PathBuf pop()s even if file_name is None #59714

Closed
@pongad

Description

@pongad

Playground link

The documentation states that pop should do nothing and return false if file_name is None, but it returns true and actually removes the ".." component.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions