file copy portability

Peter Hansen peter at engcorp.com
Wed Jan 19 02:01:01 CET 2005


Bob Smith wrote:
> Is shutil.copyfile(src,dst) the *most* portable way to copy files with 
> Python? I'm dealing with plain text files on Windows, Linux and Mac OSX.

Yes, provided you don't need any of the features provided by the
other shutil.copy functions, and assuming you can live with the
Caveat listed in the docs for the MacOS system...

-Peter



More information about the Python-list mailing list