cdn.py 文件源码

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

项目:fuli 作者: nixir 项目源码 文件源码
def upload_remote_image(self, cdn_path, url):
        """Upload remote image to CDN.

        Args:
            cdn_path: the name of file storing in CDN
            url: the remote image URL

        Returns:
            return whether it's uploaded.
        """
        file_path = wget.download(url)
        result = self.upload_local_image(cdn_path, file_path)
        os.remove(file_path)
        return result
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号