devxlogo

FolderHasSubFolders – Returns whether the specified folder has sub-folders

FolderHasSubFolders – Returns whether the specified folder has sub-folders

' Returns a boolean indicating whether the specified folder has sub-foldersFunction FolderHasSubFolders(ByVal folderPath As String) As Boolean    Return System.IO.Directory.GetDirectories(folderPath).Length > 0End Function

devx-admin

Share the Post: