Вопрос

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?

Это было полезно?

Решение

Get a CFDictonary from DADiskCopyDescription, kDADiskDescriptionVolumeKindKey key gives a reasonable idea of the type

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top