(self, file)
| 195 | self.index = 0 |
| 196 | |
| 197 | def gen_id(self, file): |
| 198 | logical = _logical = make_id(file) |
| 199 | pos = 1 |
| 200 | while logical in self.filenames: |
| 201 | logical = "%s.%d" % (_logical, pos) |
| 202 | pos += 1 |
| 203 | self.filenames.add(logical) |
| 204 | return logical |
| 205 | |
| 206 | def append(self, full, file, logical): |
| 207 | if os.path.isdir(full): |
no test coverage detected