Programmatically Find Out Type of Mounted Drive - Mac OSX
-
26-04-2021 - |
Pregunta
It doesn't seem that DiskArbitration framework provides a way to find out the device type (network drive, external drives, etc). Is there any other way to programmatically figure out the type of a mounted device?
Solución
Get a CFDictonary from DADiskCopyDescription, kDADiskDescriptionVolumeKindKey key gives a reasonable idea of the type
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow