Contains only the basic properties (name, kind) that identify a file system entry.
For file entries, use FileSystemFileHandleLike which includes additional metadata.
Why this type exists:
Native FileSystemHandle is a browser API object with methods like getFile(),
createWritable(), etc. These methods and internal state cannot be serialized.
This type extracts only the serializable properties for cross-thread communication.
When it's used:
Returned by statSync() for directory entries
Used as the handle property in DirEntryLike
Internally converted from FileSystemHandle via serializeFileSystemHandle()
Serializable version of
FileSystemHandle.Contains only the basic properties (
name,kind) that identify a file system entry. For file entries, useFileSystemFileHandleLikewhich includes additional metadata.Why this type exists: Native
FileSystemHandleis a browser API object with methods likegetFile(),createWritable(), etc. These methods and internal state cannot be serialized. This type extracts only the serializable properties for cross-thread communication.When it's used:
statSync()for directory entrieshandleproperty inDirEntryLikeFileSystemHandleviaserializeFileSystemHandle()