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

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

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