shithub: mc

ref: 03220ea343818819d6c155bd83e609ca2282a6e4
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"
	;;
}