You should use `mopidy.utils.path.get_or_create_dir()` instead. Then you won't need to check if it already exists, you'll get logging for free when the directory is created, and any placeholders (`~` or `$XDG_*`) is replaced with their proper values.