def get_file(self, path): f = FileFactory.by_path(path) if not f: self._logger.error(u"file not recognized %s" % path) return None return f