322
322
if e.errno in (errno.ENOENT, errno.ENOTDIR):
323
323
raise errors.NoSuchFile(path, extra=e)
324
324
elif e.errno == errno.EINVAL:
326
326
raise errors.NoSuchFile(path, extra=e)
327
327
# I would rather use errno.EFOO, but there doesn't seem to be