[Mono-bugs] [Bug 79624][Nor] New - FileSystemWatcher events have incorrect information

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sun Oct 8 17:34:00 EDT 2006

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 cpinto at yimports.com.


--- shadow/79624	2006-10-08 17:34:00.000000000 -0400
+++ shadow/79624.tmp.19553	2006-10-08 17:34:00.000000000 -0400
@@ -0,0 +1,76 @@
+Bug#: 79624
+Product: Mono: Class Libraries
+Version: 1.1
+OS Details: 
+Status: NEW   
+Priority: Normal
+Component: System
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: cpinto at yimports.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+Summary: FileSystemWatcher events have incorrect information
+I set up a very simple program to test the FileSystemWatcher and I noticed
+that some important events have bad data in them.
+I'll attach the program in a while so that you can see the results for
+This is the transcript of the tests performed:
+$ mkdir /tmp/fsw
+$ mono travelight.exe /tmp/fsw
+$ touch /tmp/fsw/helloWorld
+Create: /tmp/fsw/helloWorld Created
+File: /tmp/fsw/helloWorld Changed
+File: /tmp/fsw/helloWorld Changed
+$ mv /tmp/fsw/helloWorld /tmp/fsw/hiWorld
+Old file: /tmp/fsw/hiWorld
+New file: /tmp/fsw/hiWorld
+Note: The old file information is clearly incorrect.
+$ mkdir /tmp/fsw/xpto
+Create: /tmp/fsw/xpto Created
+$ mv /tmp/fsw/xpto/ /tmp/fsw/tmp
+Old file: /tmp/fsw/tmp
+New file: /tmp/fsw/tmp
+Note: again the old file information is incorrect.
+$ echo helloWorld > /tmp/fsw/tmp/hiWorld
+Create: /tmp/fsw/xpto/hiWorld Created
+File: /tmp/fsw/xpto/hiWorld Changed
+Note: there is no /tmp/fsw/xpto anymore so this is wrong too.
+$ mv /tmp/fsw/tmp/hiWorld /tmp/fsw/tmp/helloWorld
+Old file: /tmp/fsw/xpto/helloWorld
+New file: /tmp/fsw/xpto/xpto/helloWorld
+Note: Not only the old file is incorrect (both the directory and the file
+name), the new file's FullPath contains the xpto directory twice.
+I'm running this test on a Ubuntu Edgy system. Mono version is:
+$ mono --version
+Mono JIT compiler version, (C) 2002-2006 Novell, Inc and
+Contributors. www.mono-project.com
+        TLS:           __thread
+        GC:            Included Boehm (with typed GC)
+        SIGSEGV:       normal
+        Disabled:      none
+Kernel version is 2.6.17.
+If you need further information please let me know as I would really like
+to use Mono for a new upcoming project but I need to use the FileSystemWatcher.

More information about the mono-bugs mailing list