new(basic.gblib): #394 UPLOAD keyword.
This commit is contained in:
parent
10871af6ca
commit
fddb2289d3
1 changed files with 3 additions and 7 deletions
|
@ -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}.`);
|
||||||
|
|
Loading…
Add table
Reference in a new issue