How to list content of network share
I have a Windows shared folder with a video file, e.g., \\MY-LAPTOP\NetTest\video.mp4
.
Playing the video works fine.
Question: How to list the content of the folder \\MY-LAPTOP\NetTest
?
I am trying it with Media.SubItems
, but it looks like "parsing" the folder does not work:
Media media = new Media(networkPath, FromType.FromLocation);
var parseTask = media.ParseAsync(_libVLC, MediaParseOptions.FetchNetwork);
Debug.Log($"Media.ParseAsync result: {parseTask.GetAwaiter().GetResult()}");
For the video file, I get a result of Done
.
But for the folder, I get a result of Skipped
and Media.SubItems
is empty.
Do I have to use a different data structure than Media
to list folder content?
Or maybe I need to specify some protocol / scheme in the URI?
Thanks for the help!