node-wget icon indicating copy to clipboard operation
node-wget copied to clipboard

file download is always append, and does not offer the ability to overwrite

Open lorgio opened this issue 10 years ago • 3 comments

The WriteSteam is set to append, which sometimes is an issue, if you're creating a script that needs to always download a file. It should have the ability to overwrite the file, rather than append to it.

https://github.com/wuchengwei/node-wget/blob/master/lib/wget.js#L36

lorgio avatar Jul 30 '14 18:07 lorgio

+1

anthony-stephan avatar Aug 28 '14 17:08 anthony-stephan

+1

azachar avatar Jun 29 '15 11:06 azachar

@wuchengwei possible to merge this :) ? (or add an option to switch between append/write) ?

AntoineTurmel avatar Apr 27 '17 09:04 AntoineTurmel