2018-05-13 nodejs部分文件操作相关命令 写几个Git基础命令。 获取当前文件目录1process.cwd() 进入指定目录1process.chdir() 创建文件夹12var fs = require('fs');fs.mkdirSync('./aaa'); 创建文件12var fs = require('fs');fs.writeFileSync('./aaa/hello','hello world!'); Newer Hello World