[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: path for io.tmpfile() ?
- From: Rob Kendrick <rjek@...>
- Date: Fri, 29 Oct 2010 17:19:30 +0100
On Fri, Oct 29, 2010 at 12:23:32PM -0200, Luiz Henrique de Figueiredo wrote:
> > how do I get the path used to generate the temp file created by io.tmpfile()
> You can't. The whole point of tmpfile is to give you a file handle without
> giving you the file name to avoid race conditions.
And indeed, on some OSes, the file has no name.