blob: 75e0b4b5eaa253e49e7927ab3c66a5f61ada9d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
const std = @import("std");
const known = @import("known-folders");
pub fn main() !void {
const j = try known.getPath(std.heap.page_allocator, .home) orelse {
std.debug.print("Womp womp.\n", .{});
return error.CouldNotFindHome;
};
std.debug.print("~ is where the heart is -- or {s}.\n", .{j});
}
|