Serializable version of FileSystemDirectoryHandle.
Contains only the basic properties (name, kind) that identify a directory entry.
This is effectively the same as FileSystemHandleLike but with a discriminated kind.
Why this type exists:
Provides type safety when working with directory entries in sync APIs.
Use isDirectoryHandleLike() to narrow from FileSystemHandleLike.
When it's used:
Returned by statSync() for directory entries
Used in DirEntryLike.handle when the entry is a directory
Serializable version of
FileSystemDirectoryHandle.Contains only the basic properties (
name,kind) that identify a directory entry. This is effectively the same asFileSystemHandleLikebut with a discriminatedkind.Why this type exists: Provides type safety when working with directory entries in sync APIs. Use
isDirectoryHandleLike()to narrow fromFileSystemHandleLike.When it's used:
statSync()for directory entriesDirEntryLike.handlewhen the entry is a directory