From a4c91a6deddf689bb6e92946fe942b0790a46dfe Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 28 Jan 2020 13:29:19 +0100 Subject: [PATCH] Removing Container Name from Paths --- Multi-Period-Daily/User.bot.js | 10 +++++----- Multi-Period-Market/User.bot.js | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Multi-Period-Daily/User.bot.js b/Multi-Period-Daily/User.bot.js index 4fc368231..43cffff70 100644 --- a/Multi-Period-Daily/User.bot.js +++ b/Multi-Period-Daily/User.bot.js @@ -291,7 +291,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for let filePath = filePathRoot + "/Output/" + CANDLES_FOLDER_NAME + '/' + CANDLES_ONE_MIN + '/' + dateForPath; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onFileReceived); + fileStorage.getTextFile(filePath, onFileReceived); logger.write(MODULE_NAME, "[INFO] start -> buildCandles -> periodsLoop -> loopBody -> getting file at dateForPath = " + dateForPath); @@ -417,7 +417,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for let filePath = filePathRoot + "/Output/" + VOLUMES_FOLDER_NAME + '/' + VOLUMES_ONE_MIN + '/' + dateForPath; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onFileReceived); + fileStorage.getTextFile(filePath, onFileReceived); logger.write(MODULE_NAME, "[INFO] start -> buildCandles -> periodsLoop -> loopBody -> nextVolumeFile -> getting file at dateForPath = " + dateForPath); @@ -580,7 +580,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for let filePath = bot.filePathRoot + "/Output/" + CANDLES_FOLDER_NAME + "/" + bot.process + "/" + timeFrame + "/" + dateForPath; filePath += '/' + fileName - fileStorage.createTextFile(bot.dataMine, filePath, fileContent + '\n', onFileCreated); + fileStorage.createTextFile(filePath, fileContent + '\n', onFileCreated); logger.write(MODULE_NAME, "[INFO] start -> writeFiles -> writeCandles -> creating file at filePath = " + filePath); @@ -631,7 +631,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for let filePath = bot.filePathRoot + "/Output/" + VOLUMES_FOLDER_NAME + "/" + bot.process + "/" + timeFrame + "/" + dateForPath; filePath += '/' + fileName - fileStorage.createTextFile(bot.dataMine, filePath, fileContent + '\n', onFileCreated); + fileStorage.createTextFile(filePath, fileContent + '\n', onFileCreated); logger.write(MODULE_NAME, "[INFO] start -> writeFiles -> writeVolumes -> creating file at filePath = " + filePath); @@ -719,7 +719,7 @@ Read the candles and volumes from Bruce and produce a file for each day and for let filePath = bot.filePathRoot + "/Output/" + pProductFolder + "/" + bot.process; filePath += '/' + fileName - fileStorage.createTextFile(bot.dataMine, filePath, fileContent + '\n', onFileCreated); + fileStorage.createTextFile(filePath, fileContent + '\n', onFileCreated); function onFileCreated(err) { diff --git a/Multi-Period-Market/User.bot.js b/Multi-Period-Market/User.bot.js index 2e70119e1..0a0e1c154 100644 --- a/Multi-Period-Market/User.bot.js +++ b/Multi-Period-Market/User.bot.js @@ -256,7 +256,7 @@ let filePath = bot.filePathRoot + "/Output/" + CANDLES_FOLDER_NAME + "/" + bot.process + "/" + timeFrame; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onFileReceived); + fileStorage.getTextFile(filePath, onFileReceived); logger.write(MODULE_NAME, "[INFO] start -> findPreviousContent -> loopBody -> getCandles -> getting file."); @@ -295,7 +295,7 @@ let filePath = bot.filePathRoot + "/Output/" + VOLUMES_FOLDER_NAME + "/" + bot.process + "/" + timeFrame; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onFileReceived); + fileStorage.getTextFile(filePath, onFileReceived); logger.write(MODULE_NAME, "[INFO] start -> findPreviousContent -> loopBody -> getVolumes -> getting file."); @@ -505,7 +505,7 @@ let filePath = filePathRoot + "/Output/" + CANDLES_FOLDER_NAME + '/' + CANDLES_ONE_MIN + '/' + dateForPath; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onFileReceived); + fileStorage.getTextFile(filePath, onFileReceived); logger.write(MODULE_NAME, "[INFO] start -> buildCandles -> periodsLoop -> loopBody -> nextCandleFile -> getting file at dateForPath = " + dateForPath); @@ -636,7 +636,7 @@ let filePath = filePathRoot + "/Output/" + VOLUMES_FOLDER_NAME + '/' + VOLUMES_ONE_MIN + '/' + dateForPath; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onFileReceived); + fileStorage.getTextFile(filePath, onFileReceived); logger.write(MODULE_NAME, "[INFO] start -> buildCandles -> periodsLoop -> loopBody -> nextVolumeFile -> getting file at dateForPath = " + dateForPath); @@ -782,7 +782,7 @@ let filePath = bot.filePathRoot + "/Output/" + CANDLES_FOLDER_NAME + "/" + bot.process + "/" + timeFrame; filePath += '/' + fileName - fileStorage.createTextFile(bot.dataMine, filePath, fileContent + '\n', onFileCreated); + fileStorage.createTextFile(filePath, fileContent + '\n', onFileCreated); logger.write(MODULE_NAME, "[INFO] start -> writeFiles -> writeCandles -> creating file at filePath = " + filePath); @@ -832,7 +832,7 @@ let filePath = bot.filePathRoot + "/Output/" + VOLUMES_FOLDER_NAME + "/" + bot.process + "/" + timeFrame; filePath += '/' + fileName - fileStorage.createTextFile(bot.dataMine, filePath, fileContent + '\n', onFileCreated); + fileStorage.createTextFile(filePath, fileContent + '\n', onFileCreated); logger.write(MODULE_NAME, "[INFO] start -> writeFiles -> writeVolumes -> creating file at filePath = " + filePath);