2082
2083
# python 2.5 has e.errno == EINVAL,
2083
2084
# and e.winerror == ERROR_DIRECTORY
2084
2085
e_winerror = getattr(e, 'winerror', None)
2085
2087
# there may be directories in the inventory even though
2086
2088
# this path is not a file on disk: so mark it as end of
2088
2090
if e.errno in (errno.ENOENT, errno.ENOTDIR, errno.EINVAL):
2090
2092
elif (sys.platform == 'win32'