import requests


def get_data_dir(server="http://localhost:5279"):
    """Return the directory where LBRY stores its data."""
    msg = {"method": "settings_get"}
    out_set = requests.post(server, json=msg).json()
    data_dir = out_set["result"]["data_dir"]
    return data_dir