Message142052
| Author |
David.Townshend |
| Recipients |
David.Townshend, eric.araujo |
| Date |
2011年08月14日.06:01:02 |
| SpamBayes Score |
6.8324566e-06 |
| Marked as misclassified |
No |
| Message-id |
<1313301663.13.0.701275677576.issue12741@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
A bit of research has shown that the proposed implementation will not work either, so my next suggestion is something along the lines of
def move2(src, dst):
try:
os.link(src, dst)
except OSError as err:
# handle error appropriately, raise shutil.Error if dst exists,
# or use shutil.copy2 if dst is on a different filesystem.
pass
else:
os.unlink(src) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2011年08月14日 06:01:03 | David.Townshend | set | recipients:
+ David.Townshend, eric.araujo |
| 2011年08月14日 06:01:03 | David.Townshend | set | messageid: <1313301663.13.0.701275677576.issue12741@psf.upfronthosting.co.za> |
| 2011年08月14日 06:01:02 | David.Townshend | link | issue12741 messages |
| 2011年08月14日 06:01:02 | David.Townshend | create |
|