From e9c3965d9079804dd6d2defca43d9680fdd738f9 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Sat, 28 Mar 2020 17:40:44 +0100 Subject: [PATCH] Data Mines Includes --- src/FileStorage.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/FileStorage.js b/src/FileStorage.js index 9a9abd787..bdd833546 100644 --- a/src/FileStorage.js +++ b/src/FileStorage.js @@ -29,11 +29,15 @@ function newFileStorage () { return thisObject - async function getBlobToText (filePath, host, callBackFunction) { + async function getBlobToText (filePath, host, callBackFunction, pathComplete) { try { if (INFO_LOG === true) { logger.write('[INFO] getBlobToText -> Entering function.') } - callServer(undefined, 'Storage/' + filePath, (response, fileContent) => { + let folder = '' + if (pathComplete === false || pathComplete === undefined) { + folder = 'Storage/' + } + callServer(undefined, folder + filePath, (response, fileContent) => { if (response.result === GLOBAL.DEFAULT_OK_RESPONSE.result) { callBackFunction(GLOBAL.DEFAULT_OK_RESPONSE, fileContent) } else {