check if a volume is removable

Hi,

in a code like this, how to check whether a volume is removable (like usb pen drive)? (OS X only)

Thanks!

For i As Integer = 0 to VolumeCount-1
  LB.AddRow Volume(i).Name
Next

You need the diskutil
Something like this
Get the list of volumes

diskutil -list

Then get the device IDENTIFIER and pass it as bellow

[code]ioanniss-imac:~ ioannis$ diskutil info /dev/disk1s1 | grep “Removable Media” //<<< my sd card
Removable Media: Yes
ioanniss-imac:~ ioannis$

ioanniss-imac:~ ioannis$ diskutil info /dev/disk0 | grep “Removable Media” //<<< My SSD Disk
Removable Media: No
ioanniss-imac:~ ioannis$

[/code]

Thank you!
I managed to solve following your suggestion.