Message160363
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. |
|
Date |
User |
Action |
Args |
2012-05-10 19:26:27 | brian.curtin | set | recipients:
+ brian.curtin |
2012-05-10 19:26:27 | brian.curtin | set | messageid: <1336677987.7.0.16571427099.issue14772@psf.upfronthosting.co.za> |
2012-05-10 19:26:27 | brian.curtin | link | issue14772 messages |
2012-05-10 19:26:27 | brian.curtin | create | |
|