happy-opfs
    Preparing search index...

    Interface FileSystemDirectoryHandleLike

    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
    interface FileSystemDirectoryHandleLike {
        kind: "directory";
        name: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    kind: "directory"

    The kind is always 'directory' for directory handles.

    name: string

    The name of the file or directory.