A file in a WNFS public file system.

Constructors

  • Creates an empty private file.

    Parameters

    • parent_bare_name: Name
    • time: Date
    • rng: Rng

    Returns PrivateFile

Methods

  • Converts this file to a node.

    Returns PrivateNode

  • Returns void

  • Gets the entire content of a file.

    Parameters

    Returns Promise<any>

  • Gets a unique id for node.

    Returns string

  • Gets the exact content size without fetching all content blocks.

    Parameters

    Returns Promise<any>

  • Gets the metadata of this file.

    Returns any

  • Gets the content of the file at given offset & with an optional byte limit.

    Parameters

    Returns Promise<any>

  • Persists the current state of this file in the BlockStore and PrivateForest. This will also force a history entry to be created, if there were changes.

    Parameters

    Returns Promise<any>

  • Creates a file with provided content.

    Parameters

    Returns Promise<any>

Generated using TypeDoc