We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a93195 commit 0b46de9Copy full SHA for 0b46de9
src/contents.ts
@@ -452,6 +452,18 @@ export class Drive implements Contents.IDrive {
452
throw err;
453
}*/
454
455
+ const content: Array<Contents.IModel> = drive1Contents.content;
456
+
457
+ content.forEach(item => {
458
+ if (item.path === localPath) {
459
+ console.log('item:', item);
460
+ const index = content.indexOf(item);
461
+ if (index !== -1) {
462
+ content.splice(index, 1);
463
+ }
464
465
+ });
466
467
this._fileChanged.emit({
468
type: 'delete',
469
oldValue: { path: localPath },
0 commit comments