Although shutil.py has some nice copy functions but no real equivalent of mv(1). This is a very simple implimentation (as in not a whole lot of stuff has been implimented) but it's functional. Simply calls rename, and if that fails tries to copy and unlink.
Logged In: YES user_id=6380 This is OK, but only perpetuates the problem with this module -- it doesn't have a decent error handling strategy (prints to stdout!?!?!?!). If someone wants to put some more effort in this, I would recommend at least adding an option to copytree() to control error handling.
Logged In: YES user_id=21627 Here is an attempt to provide error handling for copytree. It collects all exceptions in a list, and raises them as shutil.Error. This would be inconsistent with shutil.rmtree, which offers the choice of ignore errors,invoke an error callback, or raise an exception at the problem. Which of these alternatives would you like to see implemented?