File: mount.py

package info (click to toggle)
mopidy-mpd 3.3.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 704 kB
  • sloc: python: 7,640; makefile: 3
file content (80 lines) | stat: -rw-r--r-- 1,919 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
from mopidy_mpd import exceptions, protocol


@protocol.commands.add("mount")
def mount(context, path, uri):
    """
    *musicpd.org, mounts and neighbors section:*

        ``mount {PATH} {URI}``

        Mount the specified remote storage URI at the given path. Example::

            mount foo nfs://192.168.1.4/export/mp3

    .. versionadded:: 0.19
        New in MPD protocol version 0.19
    """
    raise exceptions.MpdNotImplemented  # TODO


@protocol.commands.add("unmount")
def unmount(context, path):
    """
    *musicpd.org, mounts and neighbors section:*

        ``unmount {PATH}``

        Unmounts the specified path. Example::

            unmount foo

    .. versionadded:: 0.19
        New in MPD protocol version 0.19
    """
    raise exceptions.MpdNotImplemented  # TODO


@protocol.commands.add("listmounts")
def listmounts(context):
    """
    *musicpd.org, mounts and neighbors section:*

        ``listmounts``

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

            listmounts
            mount:
            storage: /home/foo/music
            mount: foo
            storage: nfs://192.168.1.4/export/mp3
            OK

    .. versionadded:: 0.19
        New in MPD protocol version 0.19
    """
    raise exceptions.MpdNotImplemented  # TODO


@protocol.commands.add("listneighbors")
def listneighbors(context):
    """
    *musicpd.org, mounts and neighbors section:*

        ``listneighbors``

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

            listneighbors
            neighbor: smb://FOO
            name: FOO (Samba 4.1.11-Debian)
            OK

    .. versionadded:: 0.19
        New in MPD protocol version 0.19
    """
    raise exceptions.MpdNotImplemented  # TODO