def updateFsData(self): fsdata_copy = self.FSData.cloneForSave() fsname = tools.hashpath('') fsname = self.root + '/' +fsname fp = open(fsname,"w+b") pickle.dump(fsdata_copy,fp,-1) fp.close()
def updateFsData(self): fsdata_copy = self.FSData.cloneForSave() fsname = tools.hashpath('') fsname = self.root + '/' + fsname fp = open(fsname, "w+b") pickle.dump(fsdata_copy, fp, -1) fp.close()
def setup(self): preserve = False fsname = tools.hashpath('') fsname = self.root + '/' +fsname fp = open(fsname, "rb") self.FSData = pickle.load(fp) fp.close() self.FSData.root.runtimeSetup() self.cache = fs45gCache('root',self.cachedir,-1,preserve) self.cache.syncTree(self.FSData.root) return True
def setup(self): preserve = False fsname = tools.hashpath('') fsname = self.root + '/' + fsname fp = open(fsname, "rb") self.FSData = pickle.load(fp) fp.close() self.FSData.root.runtimeSetup() self.cache = fs45gCache('root', self.cachedir, -1, preserve) self.cache.syncTree(self.FSData.root) return True