In Node.JS, I use this method of fs to check if a file exists:
const fs = require('fs');
// [...]
if (fs.existsSync(path)) { /** Do stuff. */ }
The question is: how can I do the same thing, but in an asynchronous way? Note: I use...
asked by
21.03.2018 / 16:35