checking the existence of a fiel

Alex cut_me_out at hotmail.com
Tue Jul 11 12:02:18 EDT 2000


> How can I check if a file exists?

import os

file_exists_p = os.path.exists (path_to_file)

http://www.python.org/doc/current/lib/module-os.path.html

Alex.



More information about the Python-list mailing list