Class DeviceFS

A temporary file system that manages and interfaces with devices

Hierarchy (view full)

Constructors

Properties

_disableSync?: boolean

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

devices: Map<string, Device<any>> = ...

Methods

  • Test whether or not path exists.

    Parameters

    • path: string

    Returns Promise<boolean>

  • Parameters

    • oldPath: string
    • newPath: string

    Returns Promise<void>

    Make rename compatible with the cache.

  • Updated the inode and data node at path

    Parameters

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

    Returns Promise<void>

    Ensure mtime updates properly, and use that to determine if a data update is required.

  • Updated the inode and data node at path

    Parameters

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

    Returns void

    Ensure mtime updates properly, and use that to determine if a data update is required.