def _file_exists ( path , filename ) : return os . path . isfile ( os . path . join ( path , filename ) )
function to check file existence in python
Checks if the filename exists under the path .
def _file_exists(path, filename):
  """Checks if the filename exists under the path."""
  return os.path.isfile(os.path.join(path, filename))