Exemple #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
Exemple #2
0
 def GetVersionTimes(self):
     args = vfs_pb2.ApiGetFileVersionTimesArgs(client_id=self.client_id,
                                               file_path=self.path)
     return self._context.SendRequest("GetFileVersionTimes", args).times