[Python-ideas] Implementation of shutil.move

Guido van Rossum guido at python.org
Mon Aug 15 19:24:47 CEST 2011


I know I'm late to the party, but I'm surprised that the existing
behavior of move() is considered problematic. It carefully mimics the
default behavior of the Unix "mv" command.

Doing a move or rename atomically with the provision that it fails
reliably when the target exists might be useful in some cases, but it
seems to be more related to filesystem-based locking, which is known
to be hard in a cross-platform way. (It also seems that some folks on
the thread have ignored Windows in their use of the term
"cross-platform".)

-- 
--Guido van Rossum (python.org/~guido)



More information about the Python-ideas mailing list