Can I do this in my code ?
Are there any better way ?
Public Async Function FolderExists(Client As DropboxClient, Optional Path As String = ("/Apps")) As Task(Of Boolean)
System.Diagnostics.Debug.WriteLine("--- Checking Folder ---")
Dim list = Await Client.Files.ListFolderAsync(Path)
' show folders then files
For Each item In list.Entries
If item.IsFolder And item.Name = ("Fav_Name") Then
MsgBox("Folder Exists. ->" & item.PathLower)
Return True
Exit For
End If
Next
Return False
End Function