Skip to content

Have VfsPath::join() treat paths more unix-like #42

Closed
@Property404

Description

@Property404

Example, these are invalid:
path.root().join("..") - this should just return the root
path.join("/") - This should also return the root (this is how Path::join works)
path.join("a///b") - This should be the same as path.join("a/b") (this is also how Path::join works)

Do you think it's a good idea to change the behavior of VfsPath::join()? It would certainly be more convenient for what I'm working on.

I implemented the first suggestion in #41

Let me know and I can submit more PRs

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