shithub: mc

ref: 85e3adbca63041d3628e9f8d55d83aa34d084008
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"
	;;
}