arnie
1
How can I get mounting path of the usb device that had been plugged in? Something like:
/media/arnie/BE0C-816B/
^^^This is the mounting path on my PC of the usb stick.
I've tried to use udev and rusb but I cannot find any method to retrive that info.
If you are on linux lsblk
should work.
If you want to use it in a rust program a crate like mnt might work.
1 Like
arnie
3
Thanks for the info. Yes, I want to use it in my program. Will check that out.
arnie
4
[Edit] My mistake. It does work. Thank you.