Converting a Shell Script to run under Python
Oleg Broytmann
phd at phd.russ.ru
Tue Dec 7 09:59:20 EST 1999
On 7 Dec 1999, Magnus L. Hetland wrote:
> > What is the command for copying file1 to file3 (eg equivalent to cp file1
> > file3)
>
> How strange... I can't seem to find any intelligent command for this.
from shutil import copy2
copy2("src", "dst")
Oleg.
----
Oleg Broytmann Foundation for Effective Policies phd at phd.russ.ru
Programmers don't die, they just GOSUB without RETURN.
More information about the Python-list
mailing list