hashicorp / go-getter

Package for downloading things from a string URL using a variety of protocols.
Mozilla Public License 2.0
1.62k stars 226 forks source link

When Getfile 404's it leaves 0 byte file #420

Open richp10 opened 1 year ago

richp10 commented 1 year ago

Using getter.GetFile(targetname, *url)

Whenever this 404's I find that the target file has been created, but is zero bytes length.

This did not seem intuitively what I would expect and this behaviour does not seem to be documented.

Otherwise great tool!