Python public recipes
The code checks to see if the file exists by using the os.path.isfile() function.
Shortcut: file.exists
if not os.path.isfile(filename):
The code checks to see if the file exists by using the os.path.isfile() function.
Shortcut: file.exists
if not os.path.isfile(filename):