标签云

微信群

扫码加入我们

WeChat QR Code

This question already has an answer here:

I'd like to use Python 3.3.3 to test for the existence of a backup file.

Something like this:

if backup does not exist:
    create it
    write to backup

otherwise:
    run other procedures not related to backup file

Any suggestions?


please search before asking, this has been asked and answered.

2018年06月19日05分00秒

duplicate of stackoverflow.com/questions/82831/…

2018年06月18日05分00秒

Please insert here the usual warning of introducing race conditions etc...

2018年06月19日05分00秒