std.fs.file_exists

std.fs

file_exists(filename, mode) -> exists

Check if a file exists and matches the given mode

Returns true if the path exists and matches the given mode (e.g., "f" for regular file, "d" for directory, "l" for symlink). Defaults to "f".