def download(self, url, file_path=None, auth=None, retry=3, retry_wait=0, overwrite=False, headers=None):
    if (file_path and (not os.path.isabs(file_path))):
        file_path = os.path.abspath(file_path)
    if (file_path and os.path.exists(file_path)):
        if overwrite:
            if self.output:
                self.output.warn(("file '%s' already exists, overwriting" % file_path))
        else:
            raise ConanException(("Error, the file to download already exists: '%s'" % file_path))
    return call_with_retry(self.output, retry, retry_wait, self._download_file, url, auth, headers, file_path)
def download(self, url, file_path=None, auth=None, retry=3, retry_wait=0, overwrite=False, headers=None):
    if (file_path and (not os.path.isabs(file_path))):
        file_path = os.path.abspath(file_path)
    if (file_path and os.path.exists(file_path)):
        if overwrite:
            if self.output:
                self.output.warn(("file '%s' already exists, overwriting" % file_path))
        else:
            raise ConanException(("Error, the file to download already exists: '%s'" % file_path))
    return call_with_retry(self.output, retry, retry_wait, self._download_file, url, auth, headers, file_path)