fs icon indicating copy to clipboard operation
fs copied to clipboard

Support getDirectory() for non-default bucket

Open a-sully opened this issue 2 years ago • 3 comments

See https://wicg.github.io/storage-buckets/#issue-25ffaa8c

The issue mentioned in the storage buckets spec is that we need a version of this algorithm which works for any bucket. You'll notice if you drill down into "obtain a local storage bottle map" that it currently assumes the "default" bucket. This just means passing an additional parameter.

We do not currently have a way to go from bottle to bucket for any storage endpoint.

Originally posted by @evanstade in https://github.com/whatwg/fs/pull/110#discussion_r1160766995

a-sully avatar Apr 07 '23 17:04 a-sully

https://github.com/whatwg/storage/issues/2 is the meta-bug for making non-default buckets work, and it seems like addressing that is a prerequisite for adding another parameter to "obtain a local storage bottle map" to make it work for non-default buckets

a-sully avatar Apr 07 '23 18:04 a-sully

Adding another parameter to "obtain a local storage bottle map" is (part of) what addresses that metabug, no?

evanstade avatar Apr 07 '23 19:04 evanstade

Correct. Apologies, that was poor wording on my part. My understanding of the steps are:

  • Decide how to make non-default buckets work https://github.com/whatwg/storage/issues/2
  • Specify how non-default buckets will work:
    • Add another parameter to "obtain a local storage bottle map" to make it work for non-default buckets
    • etc...
  • Update this spec (and other storage specs) to take into account non-default buckets:
    • Use the new "obtain a local storage bottle map" algorithm in getDirectory()
    • etc...

a-sully avatar Apr 07 '23 20:04 a-sully