fs.statSync throws an error when contained in a function?
I'm making a function that returns a boolean for when a file exists or not, using fs.statSync. It looks like this: function doesExist (cb) { let exists try { fs.statSync('./cmds/' + firstI...