Q. Which method checks if a file exists?

A
fs.exists()
B
fs.existSync()
C
fs.check()
D
fs.isFile()
Solution:

fs.exists() checks if a file exists asynchronously.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!