happy-opfs
    Preparing search index...

    Interface ReadDirSyncOptions

    Options for reading directories synchronously.

    2.0.0

    interface ReadDirSyncOptions {
        recursive?: boolean;
        withMetadata?: boolean;
    }
    Index
    recursive?: boolean

    Whether to recursively read the contents of subdirectories.

    false

    withMetadata?: boolean

    Whether each file entry carries metadata (type, size, lastModified).

    Metadata costs one getFile() lookup per file on the worker side and makes the response considerably larger, which matters when listing a large tree. With false the entries only carry path and kind - read metadata with statSync when you actually need it.

    true

    2.3.0