whatwg / fs

File System Standard
https://fs.spec.whatwg.org/
Other
236 stars 19 forks source link

Support getDirectory() for non-default bucket #112

Open a-sully opened 1 year ago

a-sully commented 1 year ago

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 commented 1 year ago

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

evanstade commented 1 year ago

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

a-sully commented 1 year ago

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