def last_slash_check(a_path):

    """Check if the path provided has an ending slash. If it does, remove
    it and return a revised path. If not, do nothing.
    """

    if a_path[-1] == '/':
        new_path = a_path[:-1]
    else:
        new_path = a_path

    return new_path