[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

mkstemp or similar in lua(tex)



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

Norbert

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



Reply to: