[Python-ideas] Implementation of shutil.move
mwm at mired.org
Fri Aug 12 18:30:29 CEST 2011
Georg Brandl <g.brandl at gmx.net> wrote:
>Am 12.08.2011 17:03, schrieb Christian Heimes:
>> Am 12.08.2011 16:55, schrieb Masklinn:
>>> On 2011-08-12, at 16:48 , David Townshend wrote:
>>>> My understanding of os.O_EXCL is that it locks the file from
>changes by any
>>>> other process.
>>> That, *could* be O_EXLOCK, but I'm not too sure.
>>> O_EXCL does not do anything in and of itself, it fails the file
>opening if combined with O_CREAT. That's it (from man 2 open):
>>> O_EXCL error if O_CREAT and the file exists
>> The man page open(2) doesn't mention O_EXLOCK. It must belong to
>> low level function.
>Or it isn't supported on the flavour of Unix you happen to be using :)
BSD systems have it, linux doesn't. One of the few times developing for linux on a mac has bitten me.
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
More information about the Python-ideas