From ab1738e6e012f202b66bdb97141d9c5530791bb0 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Mon, 26 Mar 2018 20:00:43 +0200 Subject: [PATCH] rootFilePath corrected --- One-Min-Daily-Candles-Volumes/User.bot.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/One-Min-Daily-Candles-Volumes/User.bot.js b/One-Min-Daily-Candles-Volumes/User.bot.js index 7bb9ea787..8ba94e431 100644 --- a/One-Min-Daily-Candles-Volumes/User.bot.js +++ b/One-Min-Daily-Candles-Volumes/User.bot.js @@ -458,7 +458,8 @@ let dateForPath = date.getUTCFullYear() + '/' + utilities.pad(date.getUTCMonth() + 1, 2) + '/' + utilities.pad(date.getUTCDate(), 2) + '/' + utilities.pad(date.getUTCHours(), 2) + '/' + utilities.pad(date.getUTCMinutes(), 2); let fileName = market.assetA + '_' + market.assetB + ".json" - let filePath = bot.filePathRoot + "/Output/" + TRADES_FOLDER_NAME + '/' + dateForPath; + let filePathRoot = botConfig.devTeam + "/" + "AACharly" + "." + botConfig.version.major + "." + botConfig.version.minor + "/" + global.PLATFORM_CONFIG.codeName + "." + global.PLATFORM_CONFIG.version.major + "." + global.PLATFORM_CONFIG.version.minor + "/" + global.EXCHANGE_NAME + "/" + botConfig.dataSetVersion; + let filePath = filePathRoot + "/Output/" + TRADES_FOLDER_NAME + '/' + dateForPath; charlyFileStorage.getTextFile(filePath, fileName, onFileReceived); @@ -686,7 +687,8 @@ let dateForPath = date.getUTCFullYear() + '/' + utilities.pad(date.getUTCMonth() + 1, 2) + '/' + utilities.pad(date.getUTCDate(), 2) + '/' + utilities.pad(date.getUTCHours(), 2) + '/' + utilities.pad(date.getUTCMinutes(), 2); let fileName = market.assetA + '_' + market.assetB + ".json" - let filePath = bot.filePathRoot + "/Output/" + TRADES_FOLDER_NAME + '/' + dateForPath; + let filePathRoot = botConfig.devTeam + "/" + "AACharly" + "." + botConfig.version.major + "." + botConfig.version.minor + "/" + global.PLATFORM_CONFIG.codeName + "." + global.PLATFORM_CONFIG.version.major + "." + global.PLATFORM_CONFIG.version.minor + "/" + global.EXCHANGE_NAME + "/" + botConfig.dataSetVersion; + let filePath = filePathRoot + "/Output/" + TRADES_FOLDER_NAME + '/' + dateForPath; charlyFileStorage.getTextFile(filePath, fileName, onFileReceived);