[issue1577] shutil.move() does not use os.rename() if dst is a directory

Sean Reifschneider report at bugs.python.org
Tue Mar 18 18:24:38 CET 2008


Sean Reifschneider <jafo at tummy.com> added the comment:

After reviewing the discussion I'm going to accept this because:

Guido seemed to me to say "figure it out among yourselves".

We're talking about shutil, so mimicing the shell move (mv) semantics is
not entirely unreasonable.

The current semantics are the same as what this patch implements, this
just optimizes it from a copy to a rename if possible.

Committed into trunk as rev61527.

----------
assignee:  -> jafo
keywords: +patch
nosy: +jafo
priority:  -> normal
resolution:  -> accepted

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue1577>
__________________________________


More information about the Python-bugs-list mailing list