def _file_downloader(url, local, config, opts): if not path.exists(local): try: src = url[7:] dst = local log.notice('download: copy %s -> %s' % (src, dst)) path.copy(src, dst) except: return False return True
def _file_downloader(url, local, config, opts): try: path.copy(url[6:], local) except: return False return True