Skip to content

Slashes at the end of paths #483

@Koncopd

Description

@Koncopd

Hello, trying to upgrade from 0.2.6 to 0.3.6 and see a problem that i think we had before.

So, for 0.2.6 the paths behave like this re slashes at the end:

UPath("s3://bucket/key").path
>'bucket/key'

UPath("s3://bucket/key/").path
>'bucket/key'

(UPath("s3://bucket/") / "key/").path
>'bucket/key'

However, in 0.3.6 it is now:

UPath("s3://bucket/key").path
>'bucket/key'

UPath("s3://bucket/key/").path
>'bucket/key'

(UPath("s3://bucket/") / "key/").path
>'bucket/key/'

So the last one is different, even though the result should be the same as for the second one. What is the logic behind this change? Or is it a bug?

Metadata

Metadata

Assignees

Labels

bug 🐛Something isn't working

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions