zig/lib/std/fs
Ryan Liptak ae7f3fc360 Eliminate error.InvalidHandle from OpenError and RealPathError
InvalidHandle in OpenError is no longer a possible error on any platform. In the past it was able to be returned in `openOptionsFromFlagsWasi`, but the implementation was changed in 7680c5330c to make it no longer possible.

InvalidHandle in RealPathError was a holdover from before d5312d53a0, which made realpath a compile error on WASI. However, InvalidHandle was also a possible error in the FreeBSD fallback implementation added in 537624734c. This commit changes the FreeBSD fallback implementation to return FileNotFound instead of InvalidHandle which matches how EBADF is handled in all the other `realpath` implementations (including the FreeBSD non-fallback implementation).

Closes #19084
2024-02-27 15:59:50 -08:00
..
AtomicFile.zig frontend: ignore AccessDenied when writing builtin.zig 2024-01-01 19:49:08 -07:00
Dir.zig Eliminate error.InvalidHandle from OpenError and RealPathError 2024-02-27 15:59:50 -08:00
File.zig Fix handling of Windows (WTF-16) and WASI (UTF-8) paths 2024-02-24 14:05:24 -08:00
get_app_data_dir.zig Replace shell32.SHGetKnownFolderPath usage with LOCALAPPDATA env var 2023-11-23 01:11:53 -08:00
path.zig Add std.fs.path.fmtAsUtf8Lossy/fmtWtf16LeAsUtf8Lossy 2024-02-24 14:05:24 -08:00
test.zig Fix handling of Windows (WTF-16) and WASI (UTF-8) paths 2024-02-24 14:05:24 -08:00
wasi.zig