Message160363
| 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: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 |
|