[Tutor] Checking for file existence

Tim Johnson tim@johnsons-web.com
Sat, 24 Feb 2001 11:01:49 -0900

Hi Rick:
On Sat, 24 Feb 2001, you wrote:
> import os
> if os.path.exists('/full/path/to/file'):
> 	print 'yes'
> else:
> 	print 'no'
Yes. Exactly what I was looking for.  Will review os.py for other useful
methods, now that you have brought it to my attention.
 > -- 
> "The
   --Ayn Rand
</snip> Ah yes,  the "sage" herself. And Thomas Jefferson said....
"Luck is essential to success, and the harder I work, the luckier I get"

Thank you!!
Tim Johnson
"Of all manifestations of power,
 restraint impresses the most."