[Dev-luatex] mkstemp or similar in lua(tex)

Norbert Preining preining at logic.at
Sat Nov 17 10:51:05 CET 2007

Hi all!

Frank Küster has rewritten texdoc in luatex and now it really works much
better than the original one. 

But, we have a problem, the os.tmpname function.

Could you recommend a procedure for creating a temporary DIRECTORY?

os.tmpname already CREATES a file named in the return value, so

	tmpdir = os.tmpname();
	is_ok_tmpdir,error_string = lfs.mkdir(tmpdir)

does not work.

Furthermore, a call to securly create a tmp dir would be nice, too.

Any suggestion? Or consider this a proposal for what would be nice to
have in luatex ;-)

Best wishes


Dr. Norbert Preining <preining at logic.at>        Vienna University of Technology
Debian Developer <preining at debian.org>                         Debian TeX Group
gpg DSA: 0x09C5B094      fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
Common solution to the problems of a humby (q.v.)
			--- Douglas Adams, The Meaning of Liff

More information about the dev-luatex mailing list