From 77465f92771eb4307912dd1eda03ff1403904ea5 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 28 Jan 2020 13:29:06 +0100 Subject: [PATCH] Removing Container Name from Paths --- Historic-Trades/User.Bot.js | 4 ++-- Hole-Fixing/User.Bot.js | 6 +++--- Live-Trades/User.Bot.js | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Historic-Trades/User.Bot.js b/Historic-Trades/User.Bot.js index 3809b54be..a279cba8c 100644 --- a/Historic-Trades/User.Bot.js +++ b/Historic-Trades/User.Bot.js @@ -328,7 +328,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, fileSt let fileName = bot.market.baseAsset + '_' + bot.market.quotedAsset + '.json' if (previousRecordMinute >= initialProcessTimestamp / ONE_MINUTE) { filesToCreate++ - fileStorage.createTextFile(bot.dataMine, getFilePath(minute * ONE_MINUTE) + '/' + fileName, fileContent + '\n', onFileCreated); + fileStorage.createTextFile(getFilePath(minute * ONE_MINUTE) + '/' + fileName, fileContent + '\n', onFileCreated); } fileContent = '[' needSeparator = false @@ -339,7 +339,7 @@ exports.newUserBot = function newUserBot(bot, logger, COMMONS, UTILITIES, fileSt for (let j = begin + 1; j < end; j++) { let fileName = bot.market.baseAsset + '_' + bot.market.quotedAsset + '.json' filesToCreate++ - fileStorage.createTextFile(bot.dataMine, getFilePath(j * ONE_MINUTE) + '/' + fileName, "[]" + '\n', onFileCreated); + fileStorage.createTextFile(getFilePath(j * ONE_MINUTE) + '/' + fileName, "[]" + '\n', onFileCreated); } } diff --git a/Hole-Fixing/User.Bot.js b/Hole-Fixing/User.Bot.js index 52619942d..60ff4709a 100644 --- a/Hole-Fixing/User.Bot.js +++ b/Hole-Fixing/User.Bot.js @@ -448,7 +448,7 @@ filePath = bot.filePathRoot + "/Output/" + TRADES_FOLDER_NAME + '/' + dateForPath; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onNextFileReceived, true); + fileStorage.getTextFile(filePath, onNextFileReceived, true); logger.write(MODULE_NAME, "[INFO] start -> findNextHole -> readNextFile -> reading file at dateForPath = " + dateForPath); @@ -759,7 +759,7 @@ filePath = bot.filePathRoot + "/Output/" + TRADES_FOLDER_NAME + '/' + dateForPath; filePath += '/' + fileName - fileStorage.getTextFile(bot.dataMine, filePath, onNextFileReceived, true); + fileStorage.getTextFile(filePath, onNextFileReceived, true); logger.write(MODULE_NAME, "[INFO] start -> findNextHole -> findEndOfHole -> reading file at dateForPath = " + dateForPath); @@ -1172,7 +1172,7 @@ filePath = bot.filePathRoot + "/Output/" + TRADES_FOLDER_NAME + '/' + dateForPath; filePath += '/' + fileName - fileStorage.createTextFile(bot.dataMine, filePath, fileContent + '\n', onFileCreated); + fileStorage.createTextFile(filePath, fileContent + '\n', onFileCreated); logger.write(MODULE_NAME, "[INFO] start -> tradesReadyToBeSaved -> nextRecord -> creating file at dateForPath = " + dateForPath); diff --git a/Live-Trades/User.Bot.js b/Live-Trades/User.Bot.js index 2f864e7d8..6fd2aaee4 100644 --- a/Live-Trades/User.Bot.js +++ b/Live-Trades/User.Bot.js @@ -225,7 +225,7 @@ fileContent = fileContent + ']'; - fileStorage.createTextFile(bot.dataMine, filePathA +'/'+ fileNameA, fileContent + '\n', onFirstFileACreated); + fileStorage.createTextFile(filePathA +'/'+ fileNameA, fileContent + '\n', onFirstFileACreated); function onFirstFileACreated(err) { @@ -292,7 +292,7 @@ fileContent = fileContent + ']'; - fileStorage.createTextFile(bot.dataMine, filePathB + '/' + fileNameB, fileContent + '\n', onFileBCreated); + fileStorage.createTextFile(filePathB + '/' + fileNameB, fileContent + '\n', onFileBCreated); function onFileBCreated(err) {