Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BSD Path of a mounted USB device #19

Open
iboy opened this issue May 7, 2020 · 0 comments
Open

BSD Path of a mounted USB device #19

iboy opened this issue May 7, 2020 · 0 comments

Comments

@iboy
Copy link

iboy commented May 7, 2020

Hi, is it possible to get the BSD Path of a mounted USB device by using / adapting this code? I've researched various interconnected stackoverflow responses:

https://stackoverflow.com/questions/40008280/usb-device-path-in-swift/46319129#46319129
https://stackoverflow.com/questions/39003986/usb-connection-delegate-on-swift/39026607#39026607
https://stackoverflow.com/questions/34628464/how-to-implement-ioservicematchingcallback-in-swift/39662693

Some posts mention BSD path. I can't see a straightforward kUSB key for it, to add it.

Currently, app gets the path by associating it with a mount notification - but that fails when a device is already connected when the app launches.

Having access to the BSD path / mount path in USBDevice would be super useful?

Thanks,

Ian Grant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant