'StatFile action mock.'

def StatFile(self, args):

    req = rdf_client.ListDirRequest(args)
    response = rdf_client.StatEntry(pathspec=req.pathspec, st_mode=33184, st_ino=1063090, st_dev=64512L, st_nlink=1, st_uid=139592, st_gid=5000, st_size=len(self.data), st_atime=1336469177, st_mtime=1336129892, st_ctime=1336129892)
    self.responses += 1
    self.count += 1
    status = rdf_flows.GrrStatus(status=rdf_flows.GrrStatus.ReturnedStatus.OK)
    status.cpu_time_used.user_cpu_time = self.responses
    status.cpu_time_used.system_cpu_time = (self.responses * 2)
    status.network_bytes_sent = (self.responses * 3)
    if (self.count == self.failrate):
        self.count = 0
        return [status]
    return [response, status]
