mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
fix example
This commit is contained in:
parent
056542d9ad
commit
e1c5e870de
@ -24,6 +24,7 @@ var fuse = require('fuse-bindings')
|
||||
|
||||
fuse.mount('./mnt', {
|
||||
readdir: function (path, cb) {
|
||||
console.log('readdir(%s)', path)
|
||||
if (path === '/') return cb(0, ['test'])
|
||||
cb(0)
|
||||
},
|
||||
|
@ -2,6 +2,7 @@ var fuse = require('./')
|
||||
|
||||
fuse.mount('./mnt', {
|
||||
readdir: function (path, cb) {
|
||||
console.log('readdir(%s)', path)
|
||||
if (path === '/') return cb(0, ['test'])
|
||||
cb(0)
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user