@@ -76,7 +76,7 @@ export class FileSystemDrive implements Contents.IDrive {
76
76
mimetype : '' ,
77
77
content : null ,
78
78
writable : true ,
79
- type : 'directory' ,
79
+ type : 'directory'
80
80
} ;
81
81
}
82
82
@@ -113,7 +113,7 @@ export class FileSystemDrive implements Contents.IDrive {
113
113
mimetype : '' ,
114
114
content : null ,
115
115
writable : true ,
116
- type : 'directory' ,
116
+ type : 'directory'
117
117
} ) ;
118
118
}
119
119
}
@@ -209,7 +209,7 @@ export class FileSystemDrive implements Contents.IDrive {
209
209
format : toCopy . format ,
210
210
mimetype : toCopy . mimetype ,
211
211
type : toCopy . type ,
212
- writable : toCopy . writable ,
212
+ writable : toCopy . writable
213
213
} ;
214
214
215
215
await this . save ( newPath , copy ) ;
@@ -226,12 +226,16 @@ export class FileSystemDrive implements Contents.IDrive {
226
226
const parentHandle = await this . getParentHandle ( path ) ;
227
227
228
228
if ( options ?. type === 'directory' ) {
229
- await parentHandle . getDirectoryHandle ( PathExt . basename ( path ) , { create : true } ) ;
229
+ await parentHandle . getDirectoryHandle ( PathExt . basename ( path ) , {
230
+ create : true
231
+ } ) ;
230
232
231
233
return this . get ( path ) ;
232
234
}
233
235
234
- const handle = await parentHandle . getFileHandle ( PathExt . basename ( path ) , { create : true } ) ;
236
+ const handle = await parentHandle . getFileHandle ( PathExt . basename ( path ) , {
237
+ create : true
238
+ } ) ;
235
239
const writable = await handle . createWritable ( { } ) ;
236
240
237
241
const format = options ?. format ;
@@ -257,7 +261,10 @@ export class FileSystemDrive implements Contents.IDrive {
257
261
const ext = PathExt . extname ( toCopy . name ) ;
258
262
259
263
if ( ext ) {
260
- newName = `${ newName . slice ( 0 , newName . length - ext . length ) } (Copy)${ ext } ` ;
264
+ newName = `${ newName . slice (
265
+ 0 ,
266
+ newName . length - ext . length
267
+ ) } (Copy)${ ext } `;
261
268
} else {
262
269
newName = `${ newName } (Copy)` ;
263
270
}
@@ -272,7 +279,7 @@ export class FileSystemDrive implements Contents.IDrive {
272
279
format : toCopy . format ,
273
280
mimetype : toCopy . mimetype ,
274
281
type : toCopy . type ,
275
- writable : toCopy . writable ,
282
+ writable : toCopy . writable
276
283
} ;
277
284
278
285
await this . save ( newPath , copy ) ;
0 commit comments