Show More
@@ -592,7 +592,9 class matchctx(object): | |||||
592 | try: |
|
592 | try: | |
593 | return predfn(fctx) |
|
593 | return predfn(fctx) | |
594 | except (IOError, OSError) as e: |
|
594 | except (IOError, OSError) as e: | |
595 | if e.errno in (errno.ENOENT, errno.ENOTDIR, errno.EISDIR): |
|
595 | # open()-ing a directory fails with EACCES on Windows | |
|
596 | if e.errno in (errno.ENOENT, errno.EACCES, errno.ENOTDIR, | |||
|
597 | errno.EISDIR): | |||
596 | return False |
|
598 | return False | |
597 | raise |
|
599 | raise | |
598 | else: |
|
600 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now