I am using vb.net (framework 2.0) to develop a console application on Windows which I want to then run under Mono on Debian as well. I am using System.IO.DriveInfo to get the free space on a USB flash drive. Under Windows this works fine:
Dim drv As New System.IO.DriveInfo("I:\")
On Linux this generates an exception:
Dim drv As New System.IO.DriveInfo("/mnt/usb_flash")
It appears from googling that DriveInfo is not well implemented under Mono.
How can I get the free space from a USB flash drive in VB.NET under Mono?
Thanks.