Skip to content

Commit

Permalink
fix(all): Convert is OK.
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigorodriguez committed Mar 1, 2021
1 parent 0249f9f commit da582b0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion packages/basic.gblib/services/SystemKeywords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,18 @@ export class SystemKeywords {
// Checks if the destination contains subfolders that
// need to be created.

// Checks if the destination contains subfolders that
// need to be created.

let folder;
if (dest.indexOf('/') !== -1) {
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
Expand Down

0 comments on commit da582b0

Please sign in to comment.