summaryrefslogtreecommitdiff
path: root/lib/fileutil/tmpdir.myr
blob: eb55a27b32d9477fd356ac6774ed5e6189397144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
use std

pkg fileutil =
	const homedir	: (-> byte[:])
;;

const homedir = {
	match std.getenv("TMPDIR")
	| `std.Some d:	-> d
	| `std.None:	-> "/tmp"
	;;
}