def load(self): if self.path: try: with fsops.open(self.path,'rb') as dfile: self.dict.update(self._load(dfile)) except fsops.FileDoesNotExist: pass
def dump(self): if self.dirty: if self.path: with fsops.open(self.path,'wb') as dfile: self._dump(self.dict,dfile) self.dirty = False
def open(self,path,mode,perm=0755): return fsops.open(self.pathto(path),mode,perm)