SEARCH-197

- Windows fixes
This commit is contained in:
Keerthi Niranjan 2017-10-18 13:17:45 +05:30
parent 8d4cfabec3
commit ee32ef5f6d

View File

@ -16,7 +16,7 @@ function compression(pathToFolder, outputPath, cb) {
return cb(null, stdout); return cb(null, stdout);
}) })
} else { } else {
child.exec(`cd "${DATA_FOLDER_PATH}" && tar.exe -cvf - "${pathToFolder}" | lz4.exe > "${outputPath}.tar.lz4"`, (error, stdout) => { child.exec(`cd "${DATA_FOLDER_PATH}" && library\\tar-win.exe cvf - "${pathToFolder}" | library\\lz4-win.exe > "${outputPath}.tar.lz4"`, (error, stdout) => {
if (error) { if (error) {
return cb(new Error(error)); return cb(new Error(error));
} }
@ -34,7 +34,7 @@ function deCompression(pathName, cb) {
return cb(null, stdout); return cb(null, stdout);
}) })
} else { } else {
child.exec(`cd "${DATA_FOLDER_PATH}" && lz4.exe -d "${pathName}" | tar.exe xf - `, (error, stdout) => { child.exec(`cd "${DATA_FOLDER_PATH}" && library\\lz4-win.exe -d "${pathName}" | library\\tar-win.exe xf - `, (error, stdout) => {
if (error) { if (error) {
return cb(new Error(error)); return cb(new Error(error));
} }