r"""Downloads file from given url to ``dst``. Args: url: source URL. dst: saving path.
(url: str, dst: str)
| 29 | |
| 30 | |
| 31 | def download_from_url(url: str, dst: str): |
| 32 | r"""Downloads file from given url to ``dst``. |
| 33 | |
| 34 | Args: |
| 35 | url: source URL. |
| 36 | dst: saving path. |
| 37 | """ |
| 38 | dst = os.path.expanduser(dst) |
| 39 | smart_copy(url, dst, callback=Bar(total=smart_getsize(url))) |
| 40 | return smart_getmd5(dst) |
no test coverage detected