docs: def file_exists(self,
  	                filename,
  	                shutit_pexpect_child=None,
  	                directory=False,
  	                note=None,
  	                loglevel=logging.DEBUG):
  		"""Return True if file exists on the target host, else False
  
  		@param filename:   Filename to determine the existence of.
  		@param shutit_pexpect_child:      See send()
  		@param directory:  Indicate that the file is a directory.
  		@param note:       See send()
  
  		@type filename:    string
  		@type directory:   boolean
  
  		@rtype: boolean
  		"""
  		shutit_global.shutit_global_object.yield_to_draw()
  		shutit_pexpect_child = shutit_pexpect_child or self.get_current_shutit_pexpect_session().pexpect_child
  		shutit_pexpect_session = self.get_shutit_pexpect_session_from_child(shutit_pexpect_child)
  		return shutit_pexpect_session.file_exists(filename=filename,directory=directory,note=note,loglevel=loglevel)