Lines Matching refs:dst
89 dst = "%s/%s" % (root,f)
90 self.old_files.add(dst)
92 def editFile(self,dst,data): argument
98 if os.path.exists(dst):
99 f = open(dst, "r")
103 self.old_files.remove(dst)
108 self.new_data[dst] = data
109 self.new_files.add(dst)
118 for dst in self.new_files:
119 if not (dst in self.old_files):
120 adds.add(dst)
122 edits.add(dst)
124 for dst in self.old_files:
125 if not dst in self.new_files:
126 deletes.add(dst)
130 def _writeFile(self,dst): argument
131 if not os.path.exists(os.path.dirname(dst)):
132 create_file_path(dst)
133 f = open(dst, "w")
134 f.write(self.new_data[dst])
140 for dst in sorted(adds):
141 self._writeFile(dst)
143 for dst in sorted(edits):
144 self._writeFile(dst)
146 for dst in sorted(deletes):
147 os.remove(dst)