2019年12月22日

NodeJs FS 文件系统模块

摘要: 1. fs.stat 检测是文件还是目录 fs.stat('html',function(err,stats){ if(err){ console.log(err); return false; } console.log('文件:'+stats.isFile()); console.log('目录 阅读全文

posted @ 2019-12-22 21:48 LoaderMan 阅读(442) 评论(0) 推荐(0) 编辑

导航