def trimPath(path):
    """
    Removes the trailing / from the path given
    >>> trimPath('/content/dam/sample/')
    /content/dam/sample
    """
    if path.endswith('/'):
        return path[:-1]
    return path
