문제

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