You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/07/13 11:14:27 UTC
[GitHub] [airflow] aslantar commented on issue #16967: GCStoGCS operator not working when replace=False and source_object != destination_object
aslantar commented on issue #16967:
URL: https://github.com/apache/airflow/issues/16967#issuecomment-878999248
Possible solution:
```
existing_objects = hook.list(self.destination_bucket, prefix=prefix_, delimiter=delimiter)
# add an additional case
if self.destination_object is not None:
existing_objects = existing_objects.replace(prefix_, self.destination_object, 1)
objects = set(objects) - set(existing_objects)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org