def changed()

in src/smclarify/util/dataset.py [0:0]


    def changed(self, s3_url, local) -> bool:
        """
        :param local: local file
        :param s3_url: s3://bucket/key of remote file
        :return: False if the size and mtime matches from remote, otherwise True
        """
        (bucket, path) = self.url_bucket_key(s3_url)
        assert os.path.isfile(local)
        o = self.s3r.Object(bucket, path)
        if o.last_modified.timestamp() == os.path.getmtime(local) and o.content_length == os.path.getsize(local):
            return False
        return True