def stat(self, name):
        """
		this should stat the file name and return a os.stat_result or
		FakeStatResult().
		"""
        if self.isfile(name):
            return make_stat(type=stat.S_IFREG)
        else:
            return make_stat(type=stat.S_IFDIR)

		this should stat the file name and return a os.stat_result or
		FakeStatResult().
		
lib/stashutils/fsi/base.py