bugfix for map local in windows

This commit is contained in:
OttoMao
2015-07-20 10:36:44 +08:00
parent cfb3f21f01
commit 0868ee248c
5 changed files with 5 additions and 5 deletions

View File

@@ -94,7 +94,7 @@ module.exports = {
app.get("/filetree",function(req,res){
try{
var root = req.query.root || process.env.HOME || "/";
var root = req.query.root || utils.getUserHome() || "/";
utils.filewalker(root,function(err, info){
res.json(info);
});