in server/scripts/redirector.py [0:0]
def build_gcs_path(self, version_num, postfix, channel):
"""Build the path to the information on Google Storage."""
suffix = channel
if channel == 'be':
suffix = 'builds'
index = version_num.find('.')
if index != -1:
nums = version_num.split('.')
release_num = nums[1]
if nums[0] == '1' and int(release_num) < 15:
return '%s/%s/%s' % (ApiDocs.GOOGLE_STORAGE_NEW, version_num, postfix)
return '%s/%s/%s/%s' % (ApiDocs.GOOGLE_STORAGE_NEW, suffix, version_num, postfix)