John,
In addition to Jared's suggestion (which I rather like).
You should be able to use FileSystemEventArgs.FullPath with
System.IO.File.GetAttributes to check for directories.
Something like (untested).
Dim watcher As New FileSystemWatcher()
....
AddHandler watcher.Changed, AddressOf OnChanged
' Define the event handlers.
Private Shared Sub OnChanged(source As Object, e As FileSystemEventArgs)
If (File.GetAttributes(e.FullPath) And FileAttributes.Directory) =
FileAttributes.Directory Then
' Specify what is done when a directory is changed, created, or
deleted.
Else
' Specify what is done when a file is changed, created, or
deleted.
End If
End Sub
Hope this helps
Jay