Skip to content

Commit

Permalink
download object sync bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
lewzylu(卢众意) committed Apr 7, 2024
1 parent bdc2ce4 commit f54e629
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coscmd/cos_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1447,7 +1447,9 @@ def download_file(self, cos_path, local_path, _http_headers='{}', **kwargs):
return -1
cos_path = cos_path.lstrip('/')
rt = self.remote2local_sync_check(cos_path, local_path, **kwargs)
if 0 != rt:
if -2 == rt:
return 0
elif 0 != rt:
return rt
logger.info(u"Download cos://{bucket}/{cos_path} => {local_path}".format(
bucket=self._conf._bucket,
Expand Down

0 comments on commit f54e629

Please sign in to comment.