예제 #1
0
  def GetVersionTimes(self) -> Sequence[int]:
    args = vfs_pb2.ApiGetFileVersionTimesArgs(
        client_id=self.client_id, file_path=self.path)

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

    return result.times
예제 #2
0
파일: vfs.py 프로젝트: kshithijiyer/grr
 def GetVersionTimes(self):
     args = vfs_pb2.ApiGetFileVersionTimesArgs(client_id=self.client_id,
                                               file_path=self.path)
     return self._context.SendRequest("GetFileVersionTimes", args).times