Python checks whether the specified file exists

From , 5 Years ago, written in Python, viewed 199 times.
URL https://pastebin.vip/view/44590aa9
  1. import os  
  2.  
  3. def file_exists(file_name):  
  4.     if os.path.exists(file):  
  5.         return '%s is found' % file_name  
  6.     else:  
  7.         return '%s is missing' % file_name

Reply to "Python checks whether the specified file exists"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website