.local/share/mopidy is empty
I'm using Arch Linux and installed Mopidy using pacman.

When trying to scan for my local library I encountered the issue that the file or directory `~/.local/share/mopidy/local/library.json.gz` isn't there.

Simply creating the folder `~/.local/share/mopidy/local` made the scan work.

diff --git a/mopidy/local/json.py b/mopidy/local/json.py
index 10611f6f..8f4ec5c0 100644
--- a/mopidy/local/json.py
+++ b/mopidy/local/json.py
@@ -31,6 +31,9 @@ def write_library(json_file, data):
     data['version'] = mopidy.__version__
     directory, basename = os.path.split(json_file)
 
+    if not os.path.exists(directory):
+        os.makedirs(directory)
+
     # TODO: cleanup directory/basename.* files.
     tmp = tempfile.NamedTemporaryFile(
         prefix=basename + '.', dir=directory, delete=False)
['mopidy/local/json.py']