I am trying to get a list of files from my samsung phone when plugged in via usb on the computer. the code below return file not found exception due to part of path not found. However, the source path can be found on the file explorer.
string source = @"SAMSUNG\Phone";
DirectoryInfo dir = new DirectoryInfo(source);
dir.GetFiles("*.*", System.IO.SearchOption.AllDirectories);
Example of how the cellphone device display look similar to this:
Example: screenshot of file explorer
The error message listed my project name path\SAMSUNG\phone, which is weird. I tried this with regular USB thumbdrive that have an actual drive name and it works. Any advice help. Thank you!