fs2-blobstore icon indicating copy to clipboard operation
fs2-blobstore copied to clipboard

Problem extending paths that are created with no key

Open DougC opened this issue 5 years ago • 1 comments

This test will fail:

  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.

DougC avatar Apr 30 '19 09:04 DougC

fixed?

Daenyth avatar Jun 20 '19 16:06 Daenyth