SFTP w/ proper atomic put and locking
Jan Hudec
bulb at ucw.cz
Mon Nov 14 06:07:14 GMT 2005
On Sun, Nov 13, 2005 at 20:22:38 -0800, Robey Pointer wrote:
> I'd rather not add another flags field when python is already using
> the mode parameter for that, but I'm totally not wedded to 'x'. I
> assume python doesn't normally expose this feature because some
> platform (windows?) doesn't support it.
Python documentation claims, that there is O_CREAT and O_EXCL on windows.
I rather think, that file.open does not support these because stdio does not
support them.
> (BTW, I found out the hard way that the os.open/etc calls are to be
> avoided in cross-platform code.)
--
Jan 'Bulb' Hudec <bulb at ucw.cz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051114/83294074/attachment.pgp
More information about the bazaar
mailing list