Re: copying a file in the python script

2005-04-05 Thread Peter Otten
Larry Bates wrote: > If you are moving the file to another directory on the same hard > drive (e.g. same filesystem) you can use os.rename(old, new) and > the file doesn't have to be copied at all. This is more efficient. > If you are copying to another filesystem, you must use shutil.copy > and o

Re: copying a file in the python script

2005-04-05 Thread Larry Bates
If you are moving the file to another directory on the same hard drive (e.g. same filesystem) you can use os.rename(old, new) and the file doesn't have to be copied at all. This is more efficient. If you are copying to another filesystem, you must use shutil.copy and os.remove (or os.unlink). Larr

Re: copying a file in the python script

2005-04-04 Thread Fouff
Raghul a écrit : hi I am having a problem. I want to copy a file from the folder and paste it or move it to another folder. Is it possible in python? Actually I need to implement this in the zope for my site. When I click any file it should move or copied to another folder in the same machine us

copying a file in the python script

2005-04-04 Thread Raghul
hi I am having a problem. I want to copy a file from the folder and paste it or move it to another folder. Is it possible in python? Actually I need to implement this in the zope for my site. When I click any file it should move or copied to another folder in the same machine using zope. Thanks