happy-opfs
    Preparing search index...

    Interface DirEntryLike

    Serializable version of DirEntry.

    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
    interface DirEntryLike {
        handle: FileSystemHandleLike;
        path: string;
    }
    Index

    Properties

    Properties

    The serializable handle-like object of the entry. Use isFileHandleLike() to check if it's a file.

    path: string

    The relative path of the entry from the readDirSync path parameter.