Skip to content

Tracking issue for Path::relative_from stabilization #23284

Closed
@brson

Description

@brson

Path::relative_from removes the common prefix from a path, e.g. /foo/bar relative_from /foo yields bar.

The old path_relative_from would calculate the relative path from two points on the file system, e.g. the relative path from /foo/bar to /foo/baz/qux is ../baz/qux. This is a useful operation.

Nominating because I think either relative_from is named wrong or is not useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    B-unstableBlocker: Implemented in the nightly compiler and unstable.P-mediumMedium priorityT-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.final-comment-periodIn the final comment period and will be merged soon unless new substantive objections are raised.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions