예제 #1
0
 def __init__(self, path, flags, *mode):
     self.control = Control.getInstance()
     print "attempting to open path: %s" % (path)
     base, name = os.path.split(path)
     print "makedirs: %s" % (base)
     os.makedirs(base)
     print path, flag2mode(flags)
     self.file = open(path, flag2mode(flags))
     self.fd = self.file.fileno()
예제 #2
0
 def __init__(self, *args, **kw):
     Fuse.__init__(self, *args, **kw)
     self.root = '/'
     #self.file_class = FuseBaffsFile
     self.control = Control.getInstance()