1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2025-06-13 12:53:54 +00:00

fixes on Windows for example

This commit is contained in:
Raymond Hammarling 2015-08-06 23:29:42 +02:00
parent 84b17e1efa
commit cc81654ac1

View File

@ -1,6 +1,6 @@
var fuse = require('./') var fuse = require('./')
var mountPath = process.platform ? './mnt' : 'M:\\'; var mountPath = process.platform !== 'win32' ? './mnt' : 'M:\\';
fuse.mount(mountPath, { fuse.mount(mountPath, {
readdir: function (path, cb) { readdir: function (path, cb) {
@ -17,8 +17,8 @@ fuse.mount(mountPath, {
ctime: new Date(), ctime: new Date(),
size: 100, size: 100,
mode: 16877, mode: 16877,
uid: process.getuid(), uid: process.getuid ? process.getuid() : 0,
gid: process.getgid() gid: process.getgid ? process.getgid() : 0
}) })
return return
} }
@ -29,9 +29,9 @@ fuse.mount(mountPath, {
atime: new Date(), atime: new Date(),
ctime: new Date(), ctime: new Date(),
size: 12, size: 12,
mode: 33188, mode: 188,
uid: process.getuid(), uid: process.getuid ? process.getuid() : 0,
gid: process.getgid() gid: process.getgid ? process.getgid() : 0
}) })
return return
} }