Method description:
Synchronized version of fs.exists() .
Grammar:
Since this method belongs to the fs module, the fs module needs to be introduced before use (var fs= require(“fs”) )
Receive parameters:
path The path of the file to be detected.
Source code: