-
Notifications
You must be signed in to change notification settings - Fork 181
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Find common alignemnt with HTTP.download and Base.download #458
Comments
It does seem like it would be good to bring these two APIs into agreement. Since the only contract of |
Right now there is the potentially problematic case where one gives I think the correct behavour is probably to do something like suffix the filename before the extension with This maintains the extension that FileIO needs. |
@oxinabox, is this issue still relevant? Anything actionable in HTTP.jl? It kind of seems like Downloads.jl has become it's own thing and HTTP.download has stayed its own thing, so 🤷 ? |
No update. I still believe the conceptual mission of
I believe now that Base.Download using libcurl, point 3 and possibly 1 can be done (has 1 been done already?) I guess we could move this issue to the Download std lib. |
Right now
HTTP.download(url, local_path)
acts differently depending on the filesystem state with regard to
local_path
.Contrast this to
Base.download(url, [local_path])
if
local_path
So there are two differences from
Base
HTTP.download
gets the filename correct based on the protocol.HTTP
downloads into it, where asBase.download
just errors.Point 1 is definately a good thing because filename has important metadata.
But point 2, maybe not:
I had though this was a nifty and intuitive feature.
But in JuliaLang/julia#33088
@StefanKarpinski made me rethink that.
The text was updated successfully, but these errors were encountered: