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()
def __init__(self, *args, **kw): Fuse.__init__(self, *args, **kw) self.root = '/' #self.file_class = FuseBaffsFile self.control = Control.getInstance()