If you want to do something only if the file exists (or does not), use 
os.path.isfile(filename)
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to