Hacker News new | ask | show | jobs
by loeg 778 days ago
Browsers typically emit downloads to temporary files until they are complete, then rename them into the final location, to prevent this kind of issue.
1 comments

Tools like wget or curl often do not. And the shell doesn't when doing something like `curl ... >myscript.sh`.
Sure. Just pointing out that there's a good reason browsers do this.