You Are Here Home > Check To See If a File Exists

Check To See If a File Exists

import os
 
if os.path.exists(path_to_file):
   # Do stuff
Check To See If a File Exists
Filed under: Python   Posted by: Hamid

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment