parent
7411c84ba7
commit
77e8436f3e
@ -65,6 +65,13 @@ Core configuration
|
|||||||
|
|
||||||
Path to base directory for storing cached data.
|
Path to base directory for storing cached data.
|
||||||
|
|
||||||
|
Mopidy and extensions will use this path to cache data that can safely be
|
||||||
|
thrown away.
|
||||||
|
|
||||||
|
If your system is running from an SD card, it can help avoid wear and
|
||||||
|
corruption of your SD card by pointing this config to another location. If
|
||||||
|
you have enough RAM, a tmpfs might be a good choice.
|
||||||
|
|
||||||
When running Mopidy as a regular user, this should usually be
|
When running Mopidy as a regular user, this should usually be
|
||||||
``$XDG_CACHE_DIR/mopidy``, i.e. :file:`~/.cache/mopidy`.
|
``$XDG_CACHE_DIR/mopidy``, i.e. :file:`~/.cache/mopidy`.
|
||||||
|
|
||||||
@ -85,6 +92,11 @@ Core configuration
|
|||||||
|
|
||||||
Path to base directory for persistent data files.
|
Path to base directory for persistent data files.
|
||||||
|
|
||||||
|
Mopidy and extensions will use this path to store data that cannot be
|
||||||
|
be thrown away and reproduced without some effort. Examples include
|
||||||
|
Mopidy-Local's index of your media library and Mopidy-M3U's stored
|
||||||
|
playlists.
|
||||||
|
|
||||||
When running Mopidy as a regular user, this should usually be
|
When running Mopidy as a regular user, this should usually be
|
||||||
``$XDG_DATA_DIR/mopidy``, i.e. :file:`~/.local/share/mopidy`.
|
``$XDG_DATA_DIR/mopidy``, i.e. :file:`~/.local/share/mopidy`.
|
||||||
|
|
||||||
|
|||||||
@ -63,6 +63,8 @@ class Extension(object):
|
|||||||
def get_cache_dir(self, config):
|
def get_cache_dir(self, config):
|
||||||
"""Get or create cache directory for the extension.
|
"""Get or create cache directory for the extension.
|
||||||
|
|
||||||
|
Use this directory to cache data that can safely be thrown away.
|
||||||
|
|
||||||
:param config: the Mopidy config object
|
:param config: the Mopidy config object
|
||||||
:return: string
|
:return: string
|
||||||
"""
|
"""
|
||||||
@ -87,6 +89,8 @@ class Extension(object):
|
|||||||
def get_data_dir(self, config):
|
def get_data_dir(self, config):
|
||||||
"""Get or create data directory for the extension.
|
"""Get or create data directory for the extension.
|
||||||
|
|
||||||
|
Use this directory to store data that should be persistent.
|
||||||
|
|
||||||
:param config: the Mopidy config object
|
:param config: the Mopidy config object
|
||||||
:returns: string
|
:returns: string
|
||||||
"""
|
"""
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user