This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brian.curtin
Recipients brian.curtin
Date 2012-05-10.19:26:26
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336677987.7.0.16571427099.issue14772@psf.upfronthosting.co.za>
In-reply-to
Content
Attached is a patch to return the final destination of files or directories sent through shutil's copy, copy2, and move functions. This removes the need to construct the destination path on your own.

This is especially useful for copy/copy2 where you copy a file into a directory and need to know that resulting path. Rather than calling os.path.join(dest, os.path.basename(source)) you could get that path from copy/copy2 (which does that join internally).

Patch has docs and tests.
History
Date User Action Args
2012-05-10 19:26:27brian.curtinsetrecipients: + brian.curtin
2012-05-10 19:26:27brian.curtinsetmessageid: <1336677987.7.0.16571427099.issue14772@psf.upfronthosting.co.za>
2012-05-10 19:26:27brian.curtinlinkissue14772 messages
2012-05-10 19:26:27brian.curtincreate