Data Mines Includes

This commit is contained in:
Luis Fernando Molina committed 2020-03-28 17:40:44 +01:00
1 parent d6adb10664
commit e9c3965d90
1 file changed
+6 -2
+6 -2
View File
@@ -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 {