mirror of
https://github.com/ziglang/zig.git
synced 2026-02-09 11:03:30 +00:00
Linux deviates from POSIX and returns EISDIR while other POSIX systems return EPERM. To make all platforms consistent in their errors when calling deleteFile on a directory, we have to do a stat to translate EPERM (AccessDenied) to EISDIR (IsDir).