Removing Container Name from Paths
This commit is contained in:
1 parent
8256563a4e
commit
77465f9277
3 files changed
+7
-7
No files matched your search
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
|
||||
Reference in new issue
Block a user