| Framawiki added a comment. |
I think solving first T183789: download_dump.py: Support for "date specified" dumps is the best solution.
In T183667#3864443, @rafidaslam wrote:Then the script will add the current date as the suffix of the filename, f.ex (idwiki-latest-abstract-30122017.xml).
You mean that the script will download the latest file from the server, and then rename it with a date ?
If the user runs the script again with the same filename and without -revision parameter again (or the user specifies it as latest manually), and if the file already exist with the suffix date equals to current date, the script will not download the file again, but if it differs with the current date, the script will download it again and place the current date as the suffix of it.
But if the user'll download the file another day and this file has the same name and the same content server-side, two files will exist in the client computer with exactly the same content, no ?
Cc: rafidaslam, divadsn, eflyjason, pywikibot-bugs-list, Aklapper, Xqt, zhuyifei1999, jayvdb, siebrand, Zoranzoki21, Framawiki, 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
