MCPcopy
hub / github.com/corpnewt/gibMacOS / get_top_identifier

Method get_top_identifier

Scripts/disk.py:238–242  ·  view source on GitHub ↗
(self, disk)

Source from the content-addressed store, hash-verified

236 return None
237
238 def get_top_identifier(self, disk):
239 disk_id = self.get_identifier(disk)
240 if not disk_id:
241 return None
242 return disk_id.replace("disk", "didk").split("s")[0].replace("didk", "disk")
243
244 def _get_physical_disk(self, disk, search_term):
245 # Change disk0s1 to disk0

Callers 2

_get_physical_diskMethod · 0.95

Calls 1

get_identifierMethod · 0.95

Tested by

no test coverage detected