eflyjason added a comment.

The two parts can actually combine to:

  1. Download/link the source dump file to a temporary file name '<filename>-<time>.part'.
  2. After finish downloading/linking and checking md5, use replace function provided by @zhuyifei1999 to replace the current file with the temporary file.

Note that I think T183667: download_dump.py: Handle cases when the dump file already exists should be a parent task of this task as the stored local file name would change after solving that task.


TASK DETAIL
https://phabricator.wikimedia.org/T183675

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: eflyjason
Cc: Framawiki, Aklapper, Xqt, jayvdb, siebrand, Zoranzoki21, eflyjason, pywikibot-bugs-list, zhuyifei1999, Bright1055, Toppole69, Mine0901, Jayprakash12345, Magul, Tbscho, MayS, Beeyan, Mdupont, JJMC89, MtDu, D3r1ck01, Avicennasis, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to