mpc-js
    Preparing search index...

    Interface MountCommands

    interface MountCommands {
        listMounts(): Promise<Mount[]>;
        listNeighbors(): Promise<Neighbor[]>;
        mount(path: string, uri: string): Promise<void>;
        unmount(path: string): Promise<void>;
    }

    Hierarchy

    • ReturnType<typeof createMountCommands>
      • MountCommands
    Index

    Methods

    • Queries a list of all mounts. By default, this contains just the configured music_directory.

      Returns Promise<Mount[]>

    • 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 the specified remote storage uri at the given path.

      Parameters

      • path: string
      • uri: string

      Returns Promise<void>

    • Unmounts the specified path.

      Parameters

      • path: string

      Returns Promise<void>