[Mono-devel-list] SearchPattern2.cs

kangaroo grompf at sublimeintervention.com
Thu Dec 2 15:46:21 EST 2004


OSX has a (imo) inane file system that is case-aware but 
case-insensitive; this is causing a problem with my kqueue watcher 
monitoring global.asax because the code does a File.Exists 
(Global.asax) first, (for windows compat I assume).

The simple solution to this problem is a small overload in 
SearchPattern2.cs, but I'm unsure who the maintainer is of this 
currently

ok to commit?

-kangaroo

Index: System.IO/SearchPattern.cs
===================================================================
--- System.IO/SearchPattern.cs  (revision 36961)
+++ System.IO/SearchPattern.cs  (working copy)
@@ -47,6 +47,14 @@
                         Compile (pattern);
                 }

+               // OSX has a retarded case-insensitive yet case-aware 
filesystem
+               // so we need a overload in here for the Kqueue watcher
+               public bool IsMatch (string text, bool ignore)
+               {
+                       this.ignore = ignore;
+                       return IsMatch (text);
+               }
+
                 public bool IsMatch (string text)
                 {
                         if (!hasWildcard)




More information about the Mono-devel-list mailing list