shithub: mc

ref: 74d91a0021de012908cfdb35fb61a1473a376130
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"
	;;
}