def __inject_url(self, action, file_type):
        url_base = self.files_endpoint
        if not url_base:
            raise Exception(MISSING_FILES_ENDPOINT_ERROR)
        if "?" not in url_base:
            url_base = "%s?" % url_base
        # TODO: URL encode path.
        url = "%s&path=%s&file_type=%s" % (url_base, action.path, file_type)
        action.url = url
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/client/action_mapper.py/FileActionMapper.__inject_url/original