node.js fs.exists() will be deprecated, what to use instead?

后端 未结 4 802
我在风中等你
我在风中等你 2021-02-18 13:05

According to the documentation node.js fs.exists() will be deprecated. Their reasoning:

fs.exists() is an anachronism and exists only for historical reasons.

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-18 13:52

    The io.js docs mention the use of fs.stat() or fs.access() in place of fs.exists().

提交回复
热议问题