def download_to(url, path_to_dir):
"""
Downloads a file from a given to a target directory.
Returns the file name if the downloaded file.
"""
logger.debug("downloading file from %s to %s" % (url, path_to_dir))
filename = wget.download(url, out=path_to_dir, bar=None)
return filename
file_download_operations.py 文件源码
python
阅读 26
收藏 0
点赞 0
评论 0
评论列表
文章目录