@@ -151,24 +151,24 @@ export class FileSystemDrive implements Contents.IDrive {
151
151
}
152
152
}
153
153
154
- getDownloadUrl ( localPath : string ) : Promise < string > {
154
+ getDownloadUrl ( path : string ) : Promise < string > {
155
155
throw new Error ( 'Method not implemented.' ) ;
156
156
}
157
157
158
158
newUntitled ( options ?: Contents . ICreateOptions ) : Promise < Contents . IModel > {
159
159
throw new Error ( 'Method not implemented.' ) ;
160
160
}
161
161
162
- delete ( localPath : string ) : Promise < void > {
162
+ delete ( path : string ) : Promise < void > {
163
163
throw new Error ( 'Method not implemented.' ) ;
164
164
}
165
165
166
- rename ( oldLocalPath : string , newLocalPath : string ) : Promise < Contents . IModel > {
166
+ rename ( oldPath : string , newPath : string ) : Promise < Contents . IModel > {
167
167
throw new Error ( 'Method not implemented.' ) ;
168
168
}
169
169
170
170
async save (
171
- localPath : string ,
171
+ path : string ,
172
172
options ?: Partial < Contents . IModel >
173
173
) : Promise < Contents . IModel > {
174
174
const root = this . _rootHandle ;
@@ -177,7 +177,7 @@ export class FileSystemDrive implements Contents.IDrive {
177
177
throw new Error ( 'No root file handle' ) ;
178
178
}
179
179
180
- const handle = await root . getFileHandle ( localPath ) ;
180
+ const handle = await root . getFileHandle ( path ) ;
181
181
const writable = await handle . createWritable ( { } ) ;
182
182
183
183
const format = options ?. format ;
@@ -189,15 +189,15 @@ export class FileSystemDrive implements Contents.IDrive {
189
189
await writable . write ( content ) ;
190
190
}
191
191
await writable . close ( ) ;
192
- return this . get ( localPath ) ;
192
+ return this . get ( path ) ;
193
193
}
194
194
195
- copy ( localPath : string , toLocalDir : string ) : Promise < Contents . IModel > {
195
+ copy ( path : string , toLocalDir : string ) : Promise < Contents . IModel > {
196
196
throw new Error ( 'Method not implemented.' ) ;
197
197
}
198
198
199
199
async createCheckpoint (
200
- localPath : string
200
+ path : string
201
201
) : Promise < Contents . ICheckpointModel > {
202
202
return {
203
203
id : 'test' ,
@@ -206,7 +206,7 @@ export class FileSystemDrive implements Contents.IDrive {
206
206
}
207
207
208
208
async listCheckpoints (
209
- localPath : string
209
+ path : string
210
210
) : Promise < Contents . ICheckpointModel [ ] > {
211
211
return [
212
212
{
@@ -216,11 +216,11 @@ export class FileSystemDrive implements Contents.IDrive {
216
216
] ;
217
217
}
218
218
219
- restoreCheckpoint ( localPath : string , checkpointID : string ) : Promise < void > {
219
+ restoreCheckpoint ( path : string , checkpointID : string ) : Promise < void > {
220
220
return Promise . resolve ( void 0 ) ;
221
221
}
222
222
223
- deleteCheckpoint ( localPath : string , checkpointID : string ) : Promise < void > {
223
+ deleteCheckpoint ( path : string , checkpointID : string ) : Promise < void > {
224
224
return Promise . resolve ( void 0 ) ;
225
225
}
226
226
0 commit comments