#!/usr/bin/env python
-import sys, os, stat, errno, fuse, re, time, tempfile
+import sys, os, errno
from bup import options, git, vfs
from bup.helpers import *
+try:
+ import fuse
+except ImportError:
+ log('error: cannot find the python "fuse" module; please install it\n')
+ sys.exit(1)
class Stat(fuse.Stat):
--
d,debug increase debug level
f,foreground run in foreground
+o,allow-other allow other users to access the filesystem
"""
-o = options.Options('bup fuse', optspec)
+o = options.Options(optspec)
(opt, flags, extra) = o.parse(sys.argv[1:])
if len(extra) != 1:
f.fuse_args.setmod('foreground')
print f.multithreaded
f.multithreaded = False
-f.fuse_args.add('allow_other')
+if opt.allow_other:
+ f.fuse_args.add('allow_other')
f.main()