We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef82807 commit f7c5f6aCopy full SHA for f7c5f6a
1 file changed
pysus/api/client.py
@@ -253,7 +253,10 @@ async def download(
253
254
existing_local = await self.get_local_file(file)
255
if existing_local and existing_local.path.exists():
256
- return existing_local
+ if existing_local.size == file.size:
257
+ return existing_local
258
+ await self._delete_record(str(existing_local.path))
259
+ existing_local.path.unlink(missing_ok=True)
260
261
client_name = file.client.name.lower()
262
remote_path = file.path
0 commit comments