'Try and give a \'stat\' for something not in the data store.
Args:
fd: The object with no stat.
Returns:
A dictionary corresponding to what we\'ll say the \'stat\' is
for objects which are not actually files, so have no OS level stat.'

def MakePartialStat(self, fd):

    is_dir = ('Container' in fd.behaviours)
    return {'pathspec': fd.Get(fd.Schema.PATHSPEC, ''), 'st_atime': fd.Get(fd.Schema.LAST, 0), 'st_blksize': 0, 'st_blocks': 0, 'st_ctime': 0, 'st_dev': 0, 'st_gid': 0, 'st_ino': 0, 'st_mode': (self.default_dir_mode if is_dir else self.default_file_mode), 'st_mtime': 0, 'st_nlink': 0, 'st_rdev': 0, 'st_size': fd.Get(fd.Schema.SIZE, 0), 'st_uid': 0}
