Lines Matching refs:dst
84 dst = "%s/%s" % (root,f)
85 self.old_files.add(dst)
87 def editFile(self,dst,data): argument
93 if os.path.exists(dst):
94 f = open(dst, "r")
98 self.old_files.remove(dst)
103 self.new_data[dst] = data
104 self.new_files.add(dst)
113 for dst in self.new_files:
114 if not (dst in self.old_files):
115 adds.add(dst)
117 edits.add(dst)
119 for dst in self.old_files:
120 if not dst in self.new_files:
121 deletes.add(dst)
125 def _writeFile(self,dst): argument
126 if not os.path.exists(os.path.dirname(dst)):
127 create_file_path(dst)
128 f = open(dst, "w")
129 f.write(self.new_data[dst])
135 for dst in sorted(adds):
136 self._writeFile(dst)
138 for dst in sorted(edits):
139 self._writeFile(dst)
141 for dst in sorted(deletes):
142 os.remove(dst)
148 for dst in sorted(adds):
149 self._writeFile(dst)
156 for dst in sorted(edits):
157 self._writeFile(dst)