moving files across devices

Alex Martelli aleaxit at yahoo.com
Thu Oct 28 17:42:30 EDT 2004


Matt Price <matt.price at utoronto.ca> wrote:

> Hi folks,
> 
> I'm trying to move files across devices on my linux box.  Here's what
> I had:  
>     os.rename(sFileName, dir + newName) 
   ...
> ok, so that doesn't work.  is there another method?

shutil.move


Alex



More information about the Python-list mailing list