[Python-ideas] Implementation of shutil.move

Masklinn masklinn at masklinn.net
Fri Aug 12 16:55:03 CEST 2011


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




More information about the Python-ideas mailing list