fs.deleteFile: Translate to error.IsDir when appropriate on POSIX systems
fs.deleteFile: Translate to error.IsDir when appropriate on POSIX systems

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

raulgrell/zig,zig-lang/zig,andrewrk/zig,andrewrk/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig,raulgrell/zig,zig-lang/zig,raulgrell/zig