Jeremy Fillingim 89afd4bd33 libstd: handle rmdirZ INVAL error (#10145)
The INVAL error was marked unreachable which prevents handling
of the error at a higher level.

It seems like it should map to BadPathError based on the man page for
rmdir (and an incomplete understanding of DeleteDirError), which says:

```
EINVAL pathname has .  as last component.
```
2021-11-30 17:38:21 -08:00
..
2021-11-15 20:04:55 -05:00
2021-11-15 04:47:57 +01:00
2021-09-19 14:02:22 +02:00
2021-10-27 16:07:48 -04:00