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