Find another way
This commit is contained in:
parent
ef6f582b5a
commit
2155194f6d
10
index.js
10
index.js
@ -38,12 +38,6 @@ class VirtualBox {
|
|||||||
|
|
||||||
if (opts.writable === false || opts.readonly) args.push('--readonly')
|
if (opts.writable === false || opts.readonly) args.push('--readonly')
|
||||||
if (opts.transient) args.push('--transient')
|
if (opts.transient) args.push('--transient')
|
||||||
|
|
||||||
let that = this;
|
|
||||||
this.command(args, function () {
|
|
||||||
const args2 = ['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1']
|
|
||||||
that.command(args2, done)
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
removeShare() {
|
removeShare() {
|
||||||
@ -166,6 +160,10 @@ class Shares {
|
|||||||
else this.vm.addShare(name, hostPath, opts, next)
|
else this.vm.addShare(name, hostPath, opts, next)
|
||||||
},
|
},
|
||||||
|
|
||||||
|
(next) => {
|
||||||
|
this.vm.command(['setextradata', 'default', 'VBoxInternal2/SharedFoldersEnableSymlinksCreate/' + name, '1'], next)
|
||||||
|
},
|
||||||
|
|
||||||
(next) => {
|
(next) => {
|
||||||
this.getFilesystem(name, (err, fs) => {
|
this.getFilesystem(name, (err, fs) => {
|
||||||
if (err) return next(err)
|
if (err) return next(err)
|
||||||
|
Loading…
Reference in New Issue
Block a user