Message142052
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) |
|
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 | |
|