file_download_operations.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:netsocadmin2 作者: UCCNetworkingSociety 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号