zig/lib/std/fs
Alex Rønne Petersen 481b7bf3f0
std.Target: Remove functions that just wrap component functions.
Functions like isMinGW() and isGnuLibC() have a good reason to exist: They look
at multiple components of the target. But functions like isWasm(), isDarwin(),
isGnu(), etc only exist to save 4-8 characters. I don't think this is a good
enough reason to keep them, especially given that:

* It's not immediately obvious to a reader whether target.isDarwin() means the
  same thing as target.os.tag.isDarwin() precisely because isMinGW() and similar
  functions *do* look at multiple components.
* It's not clear where we would draw the line. The logical conclusion before
  this commit would be to also wrap Arch.isX86(), Os.Tag.isSolarish(),
  Abi.isOpenHarmony(), etc... this obviously quickly gets out of hand.
* It's nice to just have a single correct way of doing something.
2025-02-17 19:18:19 +01:00
..
AtomicFile.zig extract std.posix from std.os 2024-03-19 11:45:09 -07:00
Dir.zig std.Target: Remove functions that just wrap component functions. 2025-02-17 19:18:19 +01:00
File.zig std.fs.File: limit initial_cap according to max_bytes in readToEndAllocOptions 2025-01-30 16:42:15 +01:00
get_app_data_dir.zig Fix handling of empty XDG environment variables 2024-08-19 23:30:14 -07:00
path.zig std: add fs.path.fmtJoin 2025-01-25 04:48:00 +00:00
test.zig wasi: fix wasm-wasi-musl constants 2025-02-09 09:08:11 +01:00
wasi.zig Replace deprecated default initializations with decl literals 2024-09-12 16:01:23 +01:00