nodejs 判断是文件还是文件夹var fs = require("fs")var stat = fs.lstatSync(".xx")console.log(stat.isDirectory())如果返回结果为true则为文件夹2023-04-21JavaScript200