Sunday, December 12, 2010

python - copy file with shutil

import shutil


#copies file1 to file2 without permissions
shutil.copy(file1, file2)



#copies file1 to file2 with permissions
shutil.copy2(file1, file2)

No comments:

Post a Comment