How to enumerate volumes on Mac OS X?

后端 未结 3 916
無奈伤痛
無奈伤痛 2020-12-24 04:27

I am not very proficient in Mac OS X programming, but I am working on a Qt application which needs info about the storage devices. Basically a list of hard drives and USB th

3条回答
  •  独厮守ぢ
    2020-12-24 05:05

    Take a look at getmntinfo() (for an enumeration of mount points) and statfs() (for information about a known mount point.)

提交回复
热议问题