Copying Huge Files ? (Newbie!)

Charles G Waldman cgw at fnal.gov
Thu Aug 12 21:43:04 CEST 1999


> while reading the manual I cannot find something like os.copyfile
> or os.movefile.


Look at the shutil (shell utilities) module, it has a copyfile function.
Moving a file (within the same file system) is accomplished by os.rename.
To move a file across filesystems you must use copy, then os.remove the
original.




More information about the Python-list mailing list