That doesn't fix the issue though. The issue is a killer USB or a virus on the disk. Being able to only read an infected file still allows it to be read.
Also, this is only a software solution as the USB protocol would require bidirectional transmission.