CodeLoft
housing for code, scripts, urls around web programming and related stuff.
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment