Skip to content

Commit e082fe8

Browse files
Merge pull request #3 from davidbrochart/delete-rename
Override delete and rename
2 parents d43f6de + b1f677b commit e082fe8

File tree

1 file changed

+11
-0
lines changed
  • packages/my-shared-docprovider/src

1 file changed

+11
-0
lines changed

packages/my-shared-docprovider/src/drive.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,17 @@ export class MySharedDrive extends Drive implements ICollaborativeDrive {
111111
return {id: '', last_modified: ''};
112112
}
113113

114+
async rename(
115+
oldLocalPath: string,
116+
newLocalPath: string
117+
): Promise<Contents.IModel> {
118+
return await this._app.serviceManager.contents.rename(oldLocalPath, newLocalPath);
119+
}
120+
121+
async delete(localPath: string): Promise<void> {
122+
return await this._app.serviceManager.contents.delete(localPath);
123+
}
124+
114125
async newUntitled(options?: Contents.ICreateOptions): Promise<Contents.IModel> {
115126
return await this._app.serviceManager.contents.newUntitled(options);
116127
}

0 commit comments

Comments
 (0)