You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it should "extend a path with no key correctly" in {
val path = Path("some-bucket") / "key"
path must be(Path("some-bucket", "key", None, false, None))
}
with some-bucket//key was not equal to some-bucket/key
The extension code doesn't check for the empty initial key and you end up with a double '/' in the resulting path.
I'm happy to put together a PR to fix this. Either it can check for a blank key string when extending, or I could change Path.key to be Option[String] to make it more explicit.
The text was updated successfully, but these errors were encountered:
This test will fail:
with
some-bucket//key was not equal to some-bucket/key
The extension code doesn't check for the empty initial key and you end up with a double '/' in the resulting path.
I'm happy to put together a PR to fix this. Either it can check for a blank key string when extending, or I could change
Path.key
to beOption[String]
to make it more explicit.The text was updated successfully, but these errors were encountered: