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

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...