mercurial/util.py
changeset 5487 7a64931e2d76
parent 5481 003d1f174fe1
child 5525 dcbda0c4c3eb
--- a/mercurial/util.py	Sat Nov 03 17:04:42 2007 +0100
+++ b/mercurial/util.py	Mon Nov 05 20:05:44 2007 +0300
@@ -720,7 +720,7 @@
             except OSError, err:
                 # EINVAL can be raised as invalid path syntax under win32.
                 # They must be ignored for patterns can be checked too.
-                if err.errno not in (errno.ENOENT, errno.EINVAL):
+                if err.errno not in (errno.ENOENT, errno.ENOTDIR, errno.EINVAL):
                     raise
             else:
                 if stat.S_ISLNK(st.st_mode):