def METHOD_NAME(self, path):
    expire_in_seconds = self.context.config.get(
        "RESULT_STORAGE_EXPIRATION_SECONDS", None
    )
    if expire_in_seconds is None or expire_in_seconds == 0:
        return False
    timediff = datetime.now() - datetime.fromtimestamp(getmtime(path))
    return timediff.seconds > expire_in_seconds