Browse Source

allow us to pass in opts

ameba23 3 years ago
parent
commit
1b367d6820
1 changed files with 3 additions and 2 deletions
  1. 3
    2
      index.js

+ 3
- 2
index.js View File

@@ -7,9 +7,10 @@ const mkdirp = require('mkdirp')
7 7
 // module.exports.unmount = Unmount
8 8
 module.exports = () => new MountDrive()
9 9
 class MountDrive {
10
-  async mount (drive, dest) {
10
+  async mount (drive, dest, opts) {
11 11
     mkdirp.sync(dest)
12
-    var { destroy } = await hyperdriveFuse.mount(drive, dest)
12
+
13
+    var { destroy } = await hyperdriveFuse.mount(drive, dest, opts)
13 14
     this.destroy = destroy
14 15
     this.dest = dest
15 16