def strip_trailing_slash(path):
    """
    Strips a trailing '/' character from path if it ends with one

    Args:
        path - the path to strip a trailing '/' from

    Returns:
        path without a trailing '/' if it ended with one
     """
    if path[-1] == '/':
        return path[:-1]
    else:
        return path