if remove_credentials and not os.path.exists(url):  # only if not local
                    url = self._remove_credentials_url(url)