Sunday, 26 March 2017

File tests in Python?

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?

No comments:

Post a Comment