Closed woshilapin closed 7 years ago
Using fs.stat() is reading the file so modifying it in some way. Anyway, in NodeJS documentation, usage of fs.stat() is not recommended to test for existence of a file.
fs.stat()
Using
fs.stat()
is reading the file so modifying it in some way. Anyway, in NodeJS documentation, usage offs.stat()
is not recommended to test for existence of a file.