(self, url)
return ""
Download a file
Download a file
Download a file
def _download(self, url):
        """Download a file """
        download_file = FileUtil("udockertools").mktmp()
        if Msg.level <= Msg.DEF:
            Msg().setlevel(Msg.NIL)
        (hdr, dummy) = self.curl.get(url, ofile=download_file, follow=True)
        if Msg.level == Msg.NIL:
            Msg().setlevel()
        try:
            if "200" in hdr.data["X-ND-HTTPSTATUS"]:
                return download_file
        except (KeyError, TypeError, AttributeError):
            pass
        FileUtil(download_file).remove()
        return ""
def _download ( self , url ) : download_file = FileUtil ( "udockertools" ) . mktmp ( ) if Msg . level <= Msg . DEF : Msg ( ) . setlevel ( Msg . NIL ) ( hdr , dummy ) = self . curl . get ( url , ofile = download_file , follow = True ) if Msg . level == Msg . NIL : Msg ( ) . setlevel ( ) try : if "200" in hdr . data [ "X-ND-HTTPSTATUS" ] : return download_file except ( KeyError , TypeError , AttributeError ) : pass FileUtil ( download_file ) . remove ( ) return ""