fs 创建文件夹

var http = require("http");
var fs = require("fs");

var server = http.createServer(function(req,res){
    //不处理小图标
    if(req.url == "/favicon.ico"){
        return;
    }
    fs.mkdir("./album/aaa");
});

server.listen(3000,"192.168.41.30");

 

posted @ 2017-11-01 08:02  Erick-LONG  阅读(1299)  评论(0编辑  收藏  举报