Closed tomayac closed 2 years ago
Anything related to Access Handles is probably better discussed in https://github.com/whatwg/fs rather than here, as that is where that spec lives, so probably has more of the right people paying attention.
Closing in favor of https://github.com/whatwg/fs/issues/32.
Currently, a
FileSystemFileHandle
gives you aFileSystem(Sync)AccessHandle
by callingFileSystemFileHandle. create(Sync)AccessHandle()
. This means you end up with code like below:I wonder if maybe we do something else instead: similar to
FileSystemFileHandle.getFile()
, we could just haveFileSystemFileHandle.get(Sync)HighPerformanceFile()
or something, which then exposes all the things as listed in the IDL.This would mean you get a special kind of high performance file object rather than a handle on a handle. It wouldn't be symmetric to
File
objects, but conceptionally it feels at least a little cleaner to me.