问题
I can use OpenFileDialog to get a list of multiple files from local or mapped drives, however I am prevented from doing the same when I browse for example a usb-attached phone - although I can see the files and folders, when I attempt to multi-select, I get an error similar to this.
Is there a dialog I can use to get a list of files?
I have looked into Ookii.Dialogs, among others, and the only code that comes close is the CommonOpenFileDialog example in the 2nd answer here, but the folder comes back looking like this:
::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\\?\usb#vid_22b8&pid_2e82#zy322kldjb#{6ac27878-a6fa-4155-ba85-f98f491d4f33}\SID-{10001,,26401026048}\{00000009-0001-0001-0000-000000000000}
The first guid is This PC, the sencond block is the usb device itself, and I'm assuming the remainder is the path of interest, but I can't see how to translate this into something usable... what I want from here is a list of files under the selected path that I can then upload to a remote server, one-by-one.
来源:https://stackoverflow.com/questions/59340979/is-there-an-easy-way-of-getting-a-list-of-files-from-a-folder-on-an-attached-pho