ndn6-file-server client wrapped as ZenFS backend.

This backend only supports async operations.

Hierarchy

  • AsyncMixin<this> & ReadonlyMixin & FileSystem<this>
    • NDNFileSystem

Constructors

Methods

  • Returns FileSystemMetadata

  • 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>

  • Reads into a buffer

    Parameters

    • path: string
    • buffer: Uint8Array

      The buffer to read into. You must set the byteOffset and byteLength appropriately!

    • offset: number

      The offset into the file to start reading from

    • end: number

      The position in the file to stop reading

    Returns Promise<void>

  • Parameters

    • path: string

    Returns Promise<string[]>

  • Parameters

    • path: string

    Returns Promise<Stats>