get a copy of a string leaving original intact

Christoph Haas email at christoph-haas.de
Thu Oct 20 22:50:56 CEST 2005


On Thursday 20 October 2005 22:43, Bell, Kevin wrote:
> I need to copy a file, say "abc-1.tif" to another directory, but if it's
> in there already, I need to transfer it named "abc-2.tif" but I'm going
> about it all wrong.

What a coincidence... I stepped about this today:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/442460

Looks close to what you are trying.

Kind Regards
 Christoph
-- 
~
~
".signature" [Modified] 1 line --100%--                1,48         All




More information about the Python-list mailing list