[Mono-bugs] [Bug 59840][Maj] Changed - FileSystemWatcher does not see directory events.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 23 Jun 2004 13:54:44 -0400 (EDT)


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by ryoung@novell.com.

http://bugzilla.ximian.com/show_bug.cgi?id=59840

--- shadow/59840	2004-06-23 13:36:32.000000000 -0400
+++ shadow/59840.tmp.15099	2004-06-23 13:54:44.000000000 -0400
@@ -91,6 +91,40 @@
 Changed ./kk
 
 This is what i get on linux while doing 'mkdir /tmp/kk, rmdir /tmp/kk,
 mkdir /tmp/kk, touch /tmp/kk/file.txt'.
 
 What do you expect?
+
+------- Additional Comments From ryoung@novell.com  2004-06-23 13:54 -------
+I executed the following commands
+
+ryoung@russcpq:~/Desktop/Downloads> mkdir tmp
+ryoung@russcpq:~/Desktop/Downloads> touch a.txt
+ryoung@russcpq:~/Desktop/Downloads> touch tmp/a.txt
+ryoung@russcpq:~/Desktop/Downloads> rm tmp/a.txt
+ryoung@russcpq:~/Desktop/Downloads> rmdir tmp
+
+
+This is what I got.  The exception is new, I haven't seen it before.
+
+ryoung@russcpq:~/Desktop/Downloads> mono fsw.exe .
+Created /home/ryoung/Desktop/Downloads/a.txt
+Created /home/ryoung/Desktop/Downloads/tmp/a.txt
+Deleted /home/ryoung/Desktop/Downloads/tmp/a.txt
+ 
+Unhandled Exception: System.IO.DirectoryNotFoundException: Directory
+'/home/ryoung/Desktop/Downloads/tmp' not found.
+in <0x0029b> System.IO.Directory:GetFileSystemEntries
+(string,string,System.IO.FileAttributes,System.IO.FileAttributes)
+in <0x00018> System.IO.Directory:GetFiles (string,string)
+in <0x0006f> System.IO.DefaultWatcher:DoFiles
+(System.IO.DefaultWatcherData,string,string,bool)
+in <0x00169> System.IO.DefaultWatcher:UpdateDataAndDispatch
+(System.IO.DefaultWatcherData,bool)
+in <0x00133> System.IO.DefaultWatcher:Monitor ()
+in <0x00053> (wrapper delegate-invoke)
+System.MulticastDelegate:invoke_void ()
+ 
+
+If you will notice I go not get called when a directory is created or
+deleted.  The exception just started hapening with the beta 3 release.