Exemple #1
0
	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()
Exemple #2
0
 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()
Exemple #3
0
	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
Exemple #4
0
    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