def METHOD_NAME(self, original, new):
    try:
        problem_data_storage.rename(original, new)
    except OSError as e:
        if e.errno != errno.ENOENT:
            raise
    if self.zipfile:
        self.zipfile.name = _problem_directory_file(new, self.zipfile.name)
    if self.generator:
        self.generator.name = _problem_directory_file(new, self.generator.name)
    self.save()