How to use a USB drive for upload

Mbed boards show up as a flash drive, where the firmware needs to be copied. I couldn’t find any documentation on how to instruct platformio to upload code to such drive instead of using serial port. Is there a detailed guide somewhere?

See Redirecting...