Skip to content

Feature: Ignore when subpath is an empty string #15

@pysan3

Description

@pysan3

Issues

  • I have checked existing issues and there are no existing ones with the same request.

Feature description

Ignore empty strings when passed to Path(...) or path / ....

So...

Path.cwd() / "" / "" / "test.lua" == Path.cwd() / "test.lua"

Path("foo", "", "", "bar") == Path("foo/bar")

Help

Yes

Implementation help

No response

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