diff options
| author | Ryan Liptak <squeek502@hotmail.com> | 2020-06-26 15:49:31 -0700 |
|---|---|---|
| committer | Ryan Liptak <squeek502@hotmail.com> | 2020-06-26 16:00:43 -0700 |
| commit | 14c3c47fb7315e6199751082f9ef544972bb13e6 (patch) | |
| tree | b8113e001c2dccc327264923c107467b64cbba9a /lib/std/packed_int_array.zig | |
| parent | 0e3d74df8a8c06bcc0b1e4bff205f4ab8e4c6c13 (diff) | |
| download | zig-14c3c47fb7315e6199751082f9ef544972bb13e6.tar.gz zig-14c3c47fb7315e6199751082f9ef544972bb13e6.zip | |
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).
Diffstat (limited to 'lib/std/packed_int_array.zig')
0 files changed, 0 insertions, 0 deletions
