Unlike DirEntry which contains a native FileSystemHandle, this interface
uses FileSystemHandleLike which can be serialized to JSON for cross-thread
communication via SharedArrayBuffer.
Why this type exists:
Native FileSystemHandle objects cannot be transferred between the main thread
and Web Workers through JSON serialization. This type provides a plain object
alternative that preserves the essential information.
When it's used:
Returned by readDirSync() in the sync API
Internally used when worker sends directory entries back to main thread
Serializable version of
DirEntry.Unlike
DirEntrywhich contains a nativeFileSystemHandle, this interface usesFileSystemHandleLikewhich can be serialized to JSON for cross-thread communication viaSharedArrayBuffer.Why this type exists: Native
FileSystemHandleobjects cannot be transferred between the main thread and Web Workers through JSON serialization. This type provides a plain object alternative that preserves the essential information.When it's used:
readDirSync()in the sync API