durusmail: quixote-users: Re: timestamp in upload.py prone to inaccuracy (patch)
timestamp in upload.py prone to inaccuracy (patch)
2003-03-16
timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
2003-03-17
2003-03-17
Re: timestamp in upload.py prone to inaccuracy (patch)
Neil Schemenauer
2003-03-17
On Mon, Mar 17, 2003 at 12:07:44PM -0500, Greg Ward wrote:
> But open() doesn't work that way.  open(filename, "wb") unconditionally
> clobbers filename.  That's one way to resolve the race condition, I
> suppose, but not really satisfactory.

os.open with the O_EXCL flag does.  Windows probably does things
differently though so using tempfile is probably best.

  Neil

reply