[Mono-bugs] [Bug 359181] [PATCH] FileSystemWatcher: OldName and Name swapped on rename

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sat Sep 6 19:08:12 EDT 2008


User juraj at hotfeet.ch added comment

Juraj Skripsky <juraj at hotfeet.ch> changed:

           What    |Removed                                         |Added
             Status|RESOLVED                                        |REOPENED
         Resolution|FIXED                                           |

--- Comment #8 from Juraj Skripsky <juraj at hotfeet.ch>  2008-09-06 17:08:12 MDT ---
Rodrigo, I've just noticed that the patch you've applied (a) is slightly
different from the one I proposed (b):

(a) if (evt.Name != data.Directory && fsw.Pattern.IsMatch (evt.Name))

(b) if (evt.Name != data.Directory && !fsw.Pattern.IsMatch (evt.Name))


Was this change on purpose or by accident? In the former case, just reclose
this bug.

The if-condition should be the opposite of (evt.Name == data.Directory ||
fsw.Pattern.IsMatch (evt.Name)), and that would be (b) rather than (a)...

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.

More information about the mono-bugs mailing list