shithub: mc

ref: 1f645d217c2faf9cd08b5f4910ca10479821b434
dir: /lib/fileutil/tmpdir.myr/

View raw version
use std

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

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