File tree Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Expand file tree Collapse file tree 3 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -420,6 +420,23 @@ class DriveManager extends EventEmitter {
420
420
} )
421
421
} ,
422
422
423
+ unlink : async ( call ) => {
424
+ const id = call . request . getId ( )
425
+ const path = call . request . getPath ( )
426
+
427
+ if ( ! id ) throw new Error ( 'An unlink request must specify a session ID.' )
428
+ if ( ! path ) throw new Error ( 'An unlink request must specify a path. ' )
429
+ const drive = this . driveForSession ( id )
430
+
431
+ return new Promise ( ( resolve , reject ) => {
432
+ drive . unlink ( path , err => {
433
+ if ( err ) return reject ( err )
434
+ const rsp = new rpc . drive . messages . UnlinkResponse ( )
435
+ return resolve ( rsp )
436
+ } )
437
+ } )
438
+ } ,
439
+
423
440
readdir : async ( call ) => {
424
441
const id = call . request . getId ( )
425
442
const path = call . request . getPath ( )
Original file line number Diff line number Diff line change @@ -316,7 +316,8 @@ class FuseManager extends EventEmitter {
316
316
force : true ,
317
317
displayFolder : true ,
318
318
log : fuseLogger . trace . bind ( fuseLogger ) ,
319
- debug : log . isLevelEnabled ( 'trace' )
319
+ debug : log . isLevelEnabled ( 'trace' ) ,
320
+ safe : false
320
321
} )
321
322
log . debug ( { mnt, wrappedHandlers } , 'mounted the root drive' )
322
323
mountOpts . key = drive . key
Original file line number Diff line number Diff line change 36
36
"forever-monitor" : " ^1.7.1" ,
37
37
"fs-extra" : " ^7.0.1" ,
38
38
"google-protobuf" : " ^3.8.0" ,
39
- "hyperdrive" : " ^10.0.0-rc7 " ,
40
- "hyperdrive-daemon-client" : " ^0.10.0 " ,
39
+ "hyperdrive" : " ^10.0.0-rc10 " ,
40
+ "hyperdrive-daemon-client" : " ^0.10.1 " ,
41
41
"level" : " ^4.0.0" ,
42
42
"mkdirp" : " ^0.5.1" ,
43
43
"pino" : " ^5.12.6" ,
You can’t perform that action at this time.
0 commit comments