Represents a MSC3089 branch - a reference to a file (leaf) in the tree. Note that this is UNSTABLE and subject to breaking changes without notice.

Hierarchy

  • MSC3089Branch

Constructors

Properties

client: MatrixClient
directory: MSC3089TreeSpace
indexEvent: MatrixEvent

Accessors

Methods

  • Gets the name for this file.

    Returns

    The name, or "Unnamed File" if unknown.

    Returns string

  • Gets whether or not a file is locked.

    Returns

    True if locked, false otherwise.

    Returns boolean

  • Sets a file as locked or unlocked.

    Returns

    Promise which resolves when complete.

    Parameters

    • locked: boolean

      True to lock the file, false otherwise.

    Returns Promise<void>

  • Sets the name for this file.

    Returns

    Promise which resolves when complete.

    Parameters

    • name: string

      The new name for this file.

    Returns Promise<void>

Generated using TypeDoc