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