Class XMLFS

Hierarchy

  • AsyncFSMethods & FileSystem<this>
    • XMLFS

Constructors

  • Parameters

    • root: Element = ...

      The root fs element

    Returns XMLFS

Properties

_disableSync?: boolean

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

root: Element = ...

The root fs element

Methods

  • Parameters

    • syscall: string
    • node: Element
    • path: string
    • contents: boolean = false

    Returns void

  • Parameters

    • syscall: string
    • path: string
    • stats: Partial<StatsLike<number>> & Pick<StatsLike<number | bigint>, "mode">

    Returns Element

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

    Parameters

    • path: string
    • flag: string
    • mode: number
    • options: CreationOptions

    Returns Promise<File<FileSystem>>

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

    Parameters

    • path: string
    • flag: string
    • mode: number
    • __namedParameters: CreationOptions

    Returns 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

    • syscall: string
    • path: string

    Returns Element

  • Parameters

    • target: string
    • link: string

    Returns Promise<void>

  • Parameters

    • target: string
    • link: string

    Returns void

  • Get metadata about the current file system

    Returns FileSystemMetadata

  • Parameters

    • path: string
    • mode: number
    • options: CreationOptions

    Returns Promise<void>

  • Parameters

    • path: string
    • mode: number
    • __namedParameters: CreationOptions

    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 File<FileSystem>

  • Parameters

    • path: string

    Returns Promise<string[]>

  • Parameters

    • path: string

    Returns string[]

  • Returns Promise<void>

  • Parameters

    • syscall: string
    • node: Element
    • path: string
    • contents: boolean = false

    Returns 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

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

    Returns Promise<void>

  • Parameters

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

    Returns void

  • Returns a string representation of an object.

    Returns string

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void