fs.stat() 是 获取 本目录下 文件信息 的方法 。如果使用要加上绝对路径。不然会出问题。例:
解决方法
nodejs 文件路径问题
原文:https://www.cnblogs.com/500m/p/10804447.html