(self, path)
| 116 | return self.common.ANSI.sub("", self.common.read_log(directory, record, kind)) |
| 117 | |
| 118 | def fingerprint(self, path): |
| 119 | value = path.lstat() |
| 120 | require(stat.S_ISREG(value.st_mode) and value.st_nlink == 1 and value.st_uid == os.geteuid(), |
| 121 | "owned seed/profile is not a private regular file") |
| 122 | identity = self.common.identity(path) |
| 123 | identity.update({"device": value.st_dev, "inode": value.st_ino, |
| 124 | "mode": stat.S_IMODE(value.st_mode), "owner": value.st_uid, |
| 125 | "links": value.st_nlink}) |
| 126 | return identity |
| 127 | |
| 128 | def inventory(self, directory): |
| 129 | names = [] |
no test coverage detected