修复win环境下的图片同步路径错误

This commit is contained in:
结发受长生
2019-10-25 08:49:08 +08:00
parent 4a81506aec
commit 6e0600c30c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -48,5 +48,5 @@ function readDirSync(imageFolderPath, images, rootPath, callback, count={fileCou
}
module.exports = function (rootPath, imageFloder, callback) {
readDirSync(path.resolve(rootPath, imageFloder), [], rootPath, callback)
readDirSync(path.resolve(rootPath, imageFloder).replace(/\\/g,'/'), [], rootPath, callback)
}