# libstd: handle rmdirZ INVAL error \(\#10145\) · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/89afd4bd33c72c2e608974d182f4624078da3a7f)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 89afd4bd33c72c2e608974d182f4624078da3a7f

Requested commit: 89afd4bd33c72c2e608974d182f4624078da3a7f

Commit: 89afd4bd33c72c2e608974d182f4624078da3a7f

Tree: 99762897b2e0f317fa58157e0ad02a18a05d796a

Author: Jeremy Fillingim

Committer: Andrew Kelley

## Message

````
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.
```

````

## Parents

- [1e0addcf73ee71d23a41b744995848bcca38e8d3](https://git.cafe/gitcafe/zig/commit/1e0addcf73ee71d23a41b744995848bcca38e8d3?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/89afd4bd33c72c2e608974d182f4624078da3a7f?format=markdown)
