On Fri, Oct 3, 2008 at 5:15 PM, Tim Bray <[EMAIL PROTECTED]> wrote: > On Oct 3, 2008, at 6:22 AM, Bojan Smojver wrote: > >> On Fri, 2008-10-03 at 01:13 -0700, Tim Bray wrote: >> >>> i.e. a randomized name in the same directory. >> >> Have you tried using apr_file_mktemp()? > > Well, this isn't actually a temp file. Once it's written and closed, I > want to move it into its final location as quickly as possible, so I thought > it would be good to have it in the same directory where it's going to end up > and avoid doing a copy. But if this kind of thing is going to happen, you > probably have a point. -Tim >
You don't need it in the same directory, you need it on the same volume to avoid the copy. Bye, Erik.
