One could use a user maintained mapping of filesystem path to usb vendor/product/bcd ids to impleent this, with a fake device being detected and the appropriate driver being called. But its a fair bit of work for a rather niche use case so not sure I want to spend the time.
There will be some subtleties like how to detect disconnect. And of course it will only work for USBMS based devices, not MTP based ones.
Last edited by kovidgoyal; 02-12-2025 at 09:41 PM.
|