Home | History | Annotate | Download | only in tools

Lines Matching refs:dst

318                 dst = "%s/%s" % (root,f)
319 self.old_files.add(dst)
321 def editFile(self,dst,data):
325 #dst = os.path.realpath(dst)
327 if os.path.exists(dst):
328 f = open(dst, "r")
332 self.old_files.remove(dst)
337 self.new_data[dst] = data
338 self.new_files.add(dst)
347 for dst in self.new_files:
348 if not (dst in self.old_files):
349 adds.add(dst)
351 edits.add(dst)
353 for dst in self.old_files:
354 if not dst in self.new_files:
355 deletes.add(dst)
359 def _writeFile(self,dst,data=None):
360 if not os.path.exists(os.path.dirname(dst)):
361 create_file_path(dst)
363 data = self.new_data[dst]
364 f = open(dst, "w")
365 f.write(self.new_data[dst])
371 for dst in sorted(adds):
372 self._writeFile(dst)
374 for dst in sorted(edits):
375 self._writeFile(dst)
377 for dst in sorted(deletes):
378 os.remove(dst)
386 for dst in adds:
387 self._writeFile(dst)
398 for dst in edits:
399 self._writeFile(dst)
412 for dst in sorted(adds):
413 self._writeFile(dst)
420 for dst in sorted(edits):
421 self._writeFile(dst)