new(basic.gblib): #394 UPLOAD keyword.

This commit is contained in:
Rodrigo Rodriguez 2023-12-13 00:37:36 -03:00
parent 10871af6ca
commit fddb2289d3

View file

@ -662,9 +662,6 @@ export class SystemKeywords {
const { min, user } = await DialogKeywords.getProcessInfo(pid); const { min, user } = await DialogKeywords.getProcessInfo(pid);
GBLog.info(`BASIC: Saving Blob'${file}' (SAVE file).`); GBLog.info(`BASIC: Saving Blob'${file}' (SAVE file).`);
let { baseUrl, client } = await GBDeployer.internalGetDriveClient(min);
const path = DialogKeywords.getGBAIPath(min.botId, `gbdrive`);
// Checks if it is a GB FILE object. // Checks if it is a GB FILE object.
if (data.data && data.filename) { if (data.data && data.filename) {
@ -697,15 +694,14 @@ export class SystemKeywords {
} }
}); });
if (res._response.status===200 && res.contentMD5 === hash) { if (res._response.status === 200 && res.contentMD5 === hash) {
const tmpFile = ''; const tmpFile = '';
Fs.rmSync(tmpFile); Fs.rmSync(tmpFile);
} }
else{ else {
GBLog.error(`BASIC: BLOB HTTP ${res.errorCode} ${res._response.status} .`); GBLog.error(`BASIC: BLOB HTTP ${res.errorCode} ${res._response.status} .`);
} }
} catch (error) { } catch (error) {
if (error.code === 'itemNotFound') { if (error.code === 'itemNotFound') {
GBLog.info(`BASIC: BASIC source file not found: ${file}.`); GBLog.info(`BASIC: BASIC source file not found: ${file}.`);