def METHOD_NAME(self):
    # Create the autosave folder if it doesn't exist yet
    if not os.path.exists(os.path.join(self.main_window.home_folder,
                                       u".opensesame", u"backup")):
        os.mkdir(os.path.join(self.main_window.home_folder, u".opensesame",
                              u"backup"))
    self.autosave_folder = os.path.join(self.main_window.home_folder,
                                        u".opensesame", u"backup")
    # Remove expired backups
    for path in os.listdir(self.autosave_folder):
        _path = os.path.join(self.autosave_folder, path)
        t = os.path.getctime(_path)
        age = (time.time() - t)/(60*60*24)
        if age > cfg.autosave_max_age:
            oslogger.debug(u"removing '%s'" % path)
            try:
                os.remove(_path)
            except Exception as e:
                oslogger.error(f'failed to remove {path}: {e}')
    self.start_autosave_timer()