Data Mine Includes

This commit is contained in:
Luis Fernando Molina committed 2020-03-28 17:42:55 +01:00
1 parent b31c6da561
commit af47663ddc
7 files changed
+110 -60

No files matched your search

+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 {