From ee32ef5f6df0a72cb4207e94e9a168f700bf68b8 Mon Sep 17 00:00:00 2001 From: Keerthi Niranjan Date: Wed, 18 Oct 2017 13:17:45 +0530 Subject: [PATCH] SEARCH-197 - Windows fixes --- js/compressionLib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/compressionLib/index.js b/js/compressionLib/index.js index 7b3937ee..4d73f17b 100644 --- a/js/compressionLib/index.js +++ b/js/compressionLib/index.js @@ -16,7 +16,7 @@ function compression(pathToFolder, outputPath, cb) { return cb(null, stdout); }) } 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) { return cb(new Error(error)); } @@ -34,7 +34,7 @@ function deCompression(pathName, cb) { return cb(null, stdout); }) } 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) { return cb(new Error(error)); }