Message140520
| Author |
catalin.iacob |
| Recipients |
catalin.iacob, docs@python |
| Date |
2011年07月17日.08:59:20 |
| SpamBayes Score |
3.9761317e-06 |
| Marked as misclassified |
No |
| Message-id |
<1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
I recently tried to answer the question: "When moving a file to a destination that is an already existing file, is the destination overwritten?"
From the current docs I understood that if src and dst are on the same filesystem then os.rename is used, if they are on different filesystems then copy + remove is used instead. Since os.rename fails on Windows if the destination exists I concluded that shutil.move would fail on Windows and overwrite dst on Unix. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年07月17日 08:59:21 | catalin.iacob | set | recipients:
+ catalin.iacob, docs@python |
| 2011年07月17日 08:59:21 | catalin.iacob | set | messageid: <1310893161.81.0.334547060207.issue12577@psf.upfronthosting.co.za> |
| 2011年07月17日 08:59:21 | catalin.iacob | link | issue12577 messages |
| 2011年07月17日 08:59:20 | catalin.iacob | create |
|