示例#1
0
  def GetTimeline(self) -> Sequence[vfs_pb2.ApiVfsTimelineItem]:
    args = vfs_pb2.ApiGetVfsTimelineArgs(
        client_id=self.client_id, file_path=self.path)

    result = self._context.SendRequest("GetVfsTimeline", args)
    if not isinstance(result, vfs_pb2.ApiGetVfsTimelineResult):
      raise TypeError(f"Unexpected result type: {type(result)}")

    return result.items
示例#2
0
文件: vfs.py 项目: kshithijiyer/grr
 def GetTimeline(self):
     args = vfs_pb2.ApiGetVfsTimelineArgs(client_id=self.client_id,
                                          file_path=self.path)
     return self._context.SendRequest("GetVfsTimeline", args).items