happy-opfs
    Preparing search index...

    Interface FileSystemHandleLike

    Serializable version of FileSystemHandle.

    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()
    interface FileSystemHandleLike {
        kind: FileSystemHandleKind;
        name: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    kind: FileSystemHandleKind

    The kind of the entry: 'file' or 'directory'.

    name: string

    The name of the file or directory.