David Townshend <[email protected]> added the comment:
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)
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue12741>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com