fix(all): Convert is OK.

This commit is contained in:
Rodrigo Rodriguez 2021-02-28 21:04:31 -03:00
parent 0249f9f279
commit da582b0a59

View file

@ -530,9 +530,18 @@ export class SystemKeywords {
// Checks if the destination contains subfolders that // Checks if the destination contains subfolders that
// need to be created. // need to be created.
// Checks if the destination contains subfolders that
// need to be created.
let folder;
if (dest.indexOf('/') !== -1) { if (dest.indexOf('/') !== -1) {
const pathOnly = path.dirname(dest); const pathOnly = path.dirname(dest);
await this.createFolder(pathOnly); folder = await this.createFolder(pathOnly);
}
else {
folder = await client.api(
`${baseUrl}/drive/root:/${root}`)
.get();
} }
// Performs the conversion operation getting a reference // Performs the conversion operation getting a reference