Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MountCommands

Hierarchy

  • MountCommands

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private protocol

protocol: MPDProtocol

Methods

listMounts

  • listMounts(): Promise<Mount[]>
  • Queries a list of all mounts. By default, this contains just the configured music_directory.

    Returns Promise<Mount[]>

listNeighbors

  • Queries a list of "neighbors" (e.g. accessible file servers on the local net). Items on that list may be used with mount().

    Returns Promise<Neighbor[]>

mount

  • mount(path: string, uri: string): Promise<void>
  • Mount the specified remote storage uri at the given path.

    Parameters

    • path: string
    • uri: string

    Returns Promise<void>

unmount

  • unmount(path: string): Promise<void>
  • Unmounts the specified path.

    Parameters

    • path: string

    Returns Promise<void>

Generated using TypeDoc