Skip to content

Erroneous double slash in returned URL #10

Description

@impredicative

I am trying urlpath 1.1.4 with Python 3.8. The output it's producing has an extra slash:

>>> from urlpath import URL
>>> URL('s3://mybucket/') / 'myprefix'
URL('s3://mybucket//myprefix')

There is an extra slash above between mybucket and myprefix which shouldn't exist.

Compare it with the output of pathlib which is undesirable in another way, but doesn't have this extra slash in that location:

>>> from pathlib import Path
>>> Path('s3://mybucket/') / 'myprefix'
PosixPath('s3:/mybucket/myprefix')

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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