FolderHasFiles – Returns whether the specified folder has files
‘ Returns a boolean indicating whether the specified folder has filesFunction FolderHasFiles(ByVal folderPath As String) As Boolean Return System.IO.Directory.GetFiles(folderPath).Length > 0End Function