shithub: mc

ref: 804ca7d4abe311fb94e02c8e1cd56aad8865a959
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"
	;;
}