This is a bug that i have since the first version of media companion
The application wont scan the directory because the folder contain an Unauthorized directory.
System.UnauthorizedAccessException: Access to directory 'V:\RECYCLER\S-1-5-21-602162358-308236825-725345543-1003' is refused
I have no idea how you did your function for getting the folders in a directory
but i did a little function that work without any errors
- Code:
-
Function getdirectory(ByVal path As String) As List(Of String)
On Error Resume Next
Dim dirtoreturn As New List(Of String)
For Each dirtoadd As String In System.IO.Directory.GetDirectories(path)
dirtoreturn.Add(dirtoadd)
Next
Return dirtoreturn
End Function
this way if the directory cant be accessed its only going to skip the directory
if you have any question about that just ask