Class WebAccessFS

Hierarchy

  • Async & FileSystem<this>
    • WebAccessFS

Constructors

Properties

_disableSync?: boolean

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

Methods

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

    Parameters

    • path: string
    • flag: string

    Returns Promise<PreloadFile<WebAccessFS>>

  • Parameters

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

    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

    • path: string

    Returns Promise<undefined | FileSystemHandle>

  • Parameters

    • srcpath: string

    Returns Promise<void>

  • Parameters

    • srcpath: string
    • dstpath: string

    Returns void

  • Get metadata about the current file system

    Returns FileSystemMetadata

  • Parameters

    • path: string

    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<PreloadFile<WebAccessFS>>

  • Parameters

    • path: string
    • flag: string

    Returns File<FileSystem>

  • Returns Promise<void>

  • Parameters

    • path: string

    Returns Promise<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

    • path: string
    • data: Uint8Array

    Returns Promise<void>

  • Parameters

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

    Returns void

  • Parameters

    • path: string

    Returns Promise<void>

  • Parameters

    • path: string

    Returns void

  • Parameters

    • path: string
    • data: Uint8Array

    Returns Promise<void>