Get a list of all parent snapshots of the snapshot (read-only)
(self)
| 173 | |
| 174 | @property |
| 175 | def parents(self) -> List['Snapshot']: |
| 176 | """Get a list of all parent snapshots of the snapshot (read-only)""" |
| 177 | count = ctypes.c_ulonglong(0) |
| 178 | parents = core.BNGetSnapshotParents(self.handle, count) |
| 179 | |
| 180 | result = [] |
| 181 | try: |
| 182 | for i in range(0, count.value): |
| 183 | handle = core.BNNewSnapshotReference(parents[i]) |
| 184 | result.append(Snapshot(handle=handle)) |
| 185 | return result |
| 186 | finally: |
| 187 | core.BNFreeSnapshotList(parents, count) |
| 188 | |
| 189 | @property |
| 190 | def children(self) -> List['Snapshot']: |