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.
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.