Uh oh!
There was an error while loading. Please reload this page.
Use fs.access instead of fs.existsSync - #350
Conversation
There was a problem hiding this comment.
Since you are refactoring, you can directly create evRepo without those intermediate requires.
thefourtheye
commented
Nov 11, 2015
Change LGTM. Do you know why CI is not run for this PR? |
lpinca
commented
Nov 11, 2015
No clue. |
lpinca
commented
Nov 11, 2015
@thefourtheye please check again. |
phillipj
commented
Nov 11, 2015
LGTM. Some error handling on the HTTPS request and file writing would be nice, but that could be another PR. |
There was a problem hiding this comment.
Would it be better if we notified the user once the downloading is complete?
There was a problem hiding this comment.
Any idea on what kind of message? Something like this?
console.log(`Weekly Update ${filePath} downloaded.`);There was a problem hiding this comment.
We already log the filePath. So wouldn't Download completed be better?
There was a problem hiding this comment.
It would help to understand what file the message refers to, otherwise with multiple files, it can be confusing, but yes a simple "Download completed" can work too.
thefourtheye
commented
Nov 11, 2015
@phillipj do you know why CI is not run for this PR? |
There was a problem hiding this comment.
@thefourtheye If you feel strong about using only "Download completed.", I'll change this.
There was a problem hiding this comment.
This actually should have been
response.on('end',()=>console.log(`Weekly Update ${filePath} downloaded.`))phillipj
commented
Nov 11, 2015
@thefourtheye no idea why it doesn't show inline in the PR.. These commits are visible in the Travis/new.nodejs.org build history though, might be a github hickup? |
lpinca
commented
Nov 11, 2015
PTAL. |
thefourtheye
commented
Nov 11, 2015
Still looks fine to me. But I would be confident if CI ran. |
phillipj
commented
Nov 11, 2015
https://travis-ci.org/nodejs/new.nodejs.org/builds/90492242 is the build for @lpinca latest commit ba338a5 |
Use `fs.access` instead of `fs.existsSync`
thefourtheye
commented
Nov 11, 2015
Cool. Merged now. 👍 Thanks @phillipj :-) |
The reason behind this change is that
fs.existsand its sync version are deprecated.