Fixed wget docs to match new filename extraction
This commit is contained in:
parent
9725f0a412
commit
670b84eba9
|
@ -1343,7 +1343,7 @@ sh.mkdirp('/test/mkdirp', function(err) {
|
||||||
#### sh.wget(url, [options], callback)<a name="wget"></a>
|
#### sh.wget(url, [options], callback)<a name="wget"></a>
|
||||||
|
|
||||||
Downloads the file at `url` and saves it to the filesystem.
|
Downloads the file at `url` and saves it to the filesystem.
|
||||||
The file is saved to a file named with the current date/time
|
The file is saved to a file named with the filename portion of the url
|
||||||
unless the `options.filename` is present, in which case that
|
unless the `options.filename` is present, in which case that
|
||||||
filename is used instead. The callback receives `(error, path)`,
|
filename is used instead. The callback receives `(error, path)`,
|
||||||
where `path` is the full path to the downloaded file.
|
where `path` is the full path to the downloaded file.
|
||||||
|
|
Loading…
Reference in New Issue