Kizspy | Question: 5
(Choose 1 answer)
Which an asynchronous method of fs module is used to check a file exists?
A. fs.existsFile(filePath, function(exists) {...});
B. fs.exists(filePath, function(exists) {...});
C. fs.fileExists(filePath, function(exists) {...});
D. fs.access(filePath, fs.constants.F_OK, (err) => {...});