I'm very new to python.
I have a folder called "etc" with a filename password.txt when generates every night. I would like to run a python script in windows task on daily basis to check if password.txt doesn't exist then send email to abc@ouremail.co.uk else do not send any email. I want to trigger email based on the below condition. When the condition is "false" send email else no action taken. How can I achieve it, any help on this would be greatly appreciated.
os.path.isfile("/etc/password.txt") True
Kind regards,
Biswa