Return input path minus any trailing slashes.

def strip_trailing_slashes(self, path):
        """Return input path minus any trailing slashes."""
        m = re.match(r"(.*)/+$", path)
        if (m is None):
            return(path)
        return(m.group(1))