implementing mv

David M. Wilson dw-google.com at botanicus.net
Wed Dec 24 12:38:03 EST 2003


"Martin v. Loewis" <martin at v.loewis.de> wrote in message news:<bsblnd$ctm$02$1 at news.t-online.com>...
> Hong Jiang wrote:
> 
> > Is there an efficient way to implement the 'mv' command? I mean not by 
> > calling external commands.
> 
> Try shutil.move.

'Sometimes' os.rename can do moves too, however for your purposes
shutil.move sounds better suited.


David.




More information about the Python-list mailing list