whatwg / fs

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

Cursor support for FileSystemSyncAccessHandle #76

Closed jesup closed 1 year ago

jesup commented 2 years ago

Adds cursor to FileSystemSyncAccessHandle, similar to the cursor for WritableFileStream. This means that supplying an 'at:' parameter for every read and write will not be needed.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

jesup commented 2 years ago

Thanks for the careful review, @annevk !

jesup commented 1 year ago

Note that the existing cursor for WritableFileStream should have normative text for [=FileSystemWritableFileStream/file position cursor=]; right now all references are in non-normative text. I'm considering this a separate issue

a-sully commented 1 year ago

Question: with this change, should FileSystemReadWriteOptions.at become optional rather than defaulting to 0? Otherwise the behavior for read and write calls using default options is different than if you call the version of the method that does not specify any options

annevk commented 1 year ago

Filed #81.