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