(self)
| 239 | self.directory = None |
| 240 | |
| 241 | def check(self): |
| 242 | fd = _directory(self.path) |
| 243 | try: |
| 244 | actual = os.fstat(fd) |
| 245 | if (actual.st_dev, actual.st_ino) != (self.directory_identity.st_dev, |
| 246 | self.directory_identity.st_ino): |
| 247 | _error("identity", "owned output directory was replaced") |
| 248 | finally: |
| 249 | os.close(fd) |
| 250 | |
| 251 | def write(self, relative, data): |
| 252 | self.check() |