Skip to content

absolutize_from panics if the path goes outside of root #14

@mmm1379

Description

@mmm1379

there is a need for normalizing a relative path, so it can even result in sth like "../a/"

#[test]
#[should_panic]
fn test_path_evaluating_to_outside_of_root_panics() {
    let path = Path::new("..");
    let new_path = path.absolutize_from("");
}

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