[docs] shutil .move() on 2.6

Alejandro Fritz fritz at quipugmbh.com
Mon May 2 13:49:32 CEST 2011

I am changing from py 2.5 and 2.6 on windows and noticed that  the
shutil.move() function changed from overwriting (in 2.4 and 2.5)  to
non-overwriting the destination file if it exists:

    if os.path.isdir(dst):
        real_dst = os.path.join(dst, _basename(src))
        if os.path.exists(real_dst):
            raise Error, "Destination path '%s' already exists" % real_dst

This behavior is not documented.

best, af

Alejandro Fritz
Infoware project coordinator
QUIPU GmbH Frankfurt
Am Eisernen Schlag 31 / Große Seestraße 43
60431 Frankfurt/M. / 60486 Frankfurt/M.
Skype: quipu_alex
E-Mail: fritz at quipugmbh.com
Web: www.quipu-processing.com ; www.quipugmbh.com

This e-mail message and any attachments are only for the use of the intended recipient and may contain information that is privileged, confidential or exempt from disclosure under applicable law.
If you are not the intended recipient, any disclosure, distribution or other use of this e-mail message or attachments is prohibited. If you have received this e-mail message in error, please delete and notify the sender immediately. Thank you.

More information about the docs mailing list