Under windows, the path should be normalize first, otherwise the localPath will still use back slash

This commit is contained in:
Shauk Wu
2015-03-30 14:40:58 +08:00
parent eeb7633170
commit 20681d04ab

View File

@@ -235,8 +235,9 @@ module.exports = function(/*String*/input) {
}else{
zipPath="";
}
localPath = localPath.split("\\").join("/"); //windows fix
// normalize the path first
localPath = pth.normalize(localPath);
localPath = localPath.split("\\").join("/"); //windows fix
if (localPath.charAt(localPath.length - 1) != "/")
localPath += "/";