summaryrefslogtreecommitdiff
path: root/lib/fileutil/tmpdir.myr
blob: 113858806d07bb92afac306fa2a327a71408ff01 (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 h:	-> d
	| `std.None:	-> "/tmp"
	;;
}