def path_regex()

in mozdownload/scraper.py [0:0]


    def path_regex(self):
        """Return the regex for the path to the build folder."""
        if self.application == "fenix":
            regex = r'releases/%(VERSION)s/android/fenix-%(VERSION)s-%(PLATFORM)s/'
        else:
            regex = r'releases/%(VERSION)s/%(PLATFORM)s/%(LOCALE)s/'
        return regex % {'LOCALE': self.locale,
                        'PLATFORM': self.platform_regex,
                        'VERSION': self.version}