@classmethod
    def rename(cls, old_slug, new_slug):
        old_folder = cls.get_folder_name(old_slug)
        new_folder =  cls.get_folder_name(new_slug)

        # delete the new folder is necessary, otherwise the
        # old one will just end up inside of it
        try:
            rmtree(new_folder)
        except OSError:
            pass
        try:
            rename(old_folder, new_folder)
        except __HOLE__:
            pass
dataset/ETHPy150Open turbulenz/turbulenz_local/turbulenz_local/models/metrics.py/MetricsSession.rename