def file_is_present(self, file_path):
p = self.p(file_path)<EOL>if not os.path.exists(p):<EOL><INDENT>return False<EOL><DEDENT>if not os.path.isfile(p):<EOL><INDENT>raise IOError("<STR_LIT>" % file_path)<EOL><DEDENT>return True<EOL>
check if file 'file_path' is present, raises IOError if file_path
is not a file

:param file_path: str, path to the file
:return: True if file exists, False if file does not exist