如何判断某个文件夹是否存在?
 发布于 13 年前  作者 sirzxj  13473 次预览  最后一次回复是 13 年前  来自  

and某个文件是否存在?

2 回复
342479384

用文件系统,应该可以吧? 看一下fs的api

czing
path.exists("/path", function(exists) { });
path.existsSync(p);