def user_dir(username="master"):
    """Returns directory for the user."""
    assert username, "user_dir: empty username."
    if username == 'master':
        return './library/'
    else:
        return './users/' + username