Mounts an Emscripten file system into the BrowserFS file system.

Hierarchy

  • ExtractProperties<FileSystem, (...args: any[]) => Promise<unknown>> & FileSystem<
        this,
    >
    • EmscriptenFS

Constructors

Properties

_disableSync?: boolean

Whether the sync cache should be disabled. Only affects async things.

em: typeof FS

The Emscripten FS

Methods

  • Parameters

    • path: string
    • mode: number

    Returns void

  • Parameters

    • path: string
    • new_uid: number
    • new_gid: number

    Returns void

  • Create the file at path with mode. Then, open it with flag.

    Parameters

    • path: string
    • flag: string
    • mode: number

    Returns Promise<File<FileSystem>>

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns Promise<boolean>

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns boolean

  • Parameters

    • target: string
    • link: string

    Returns Promise<void>

  • Right now this method is just a mask for symlinks

    Parameters

    • srcpath: string
    • dstpath: string

    Returns void

    track hard links

  • Get metadata about the current file system

    Returns FileSystemMetadata

  • Parameters

    • path: string
    • mode: number

    Returns Promise<void>

  • Parameters

    • path: string
    • mode: number

    Returns void

  • Opens the file at path with flag. The file must exist.

    Parameters

    • path: string

      The path to open.

    • flag: string

      The flag to use when opening the file.

    Returns Promise<File<FileSystem>>

  • Opens the file at path with flag. The file must exist.

    Parameters

    • path: string

      The path to open.

    • flag: string

      The flag to use when opening the file.

    Returns EmscriptenFile

  • Parameters

    • path: string

    Returns Promise<string[]>

  • Parameters

    • path: string

    Returns string[]

  • Parameters

    • path: string

    Returns string

  • Returns Promise<void>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns Promise<void>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void

  • Parameters

    • path: string

    Returns Promise<Stats>

  • Parameters

    • path: string

    Returns Stats

  • Parameters

    • srcpath: string
    • dstpath: string

    Returns void

  • Parameters

    • path: string
    • data: Uint8Array<ArrayBufferLike>
    • stats: Readonly<Stats>

    Returns Promise<void>

  • Parameters

    • path: string
    • Optionaldata: Uint8Array<ArrayBufferLike>
    • stats: Readonly<Partial<Stats>> = {}

    Returns void

  • Parameters

    • path: string
    • len: number

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void

  • Parameters

    • path: string
    • atime: Date
    • mtime: Date

    Returns void