@staticmethod
def __trailing_backslash(path):
    """Removes blackslash from variables that contains paths."""
    if not path:
        return path
    if path[-1] != '/':
        return path
    return path[:-1]
