Skip to content

Instantly share code, notes, and snippets.

@chirag-v
Created February 13, 2013 17:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chirag-v/4946160 to your computer and use it in GitHub Desktop.
Save chirag-v/4946160 to your computer and use it in GitHub Desktop.
import shutil
shutil.copy('/home/user/acetylene.xyz', '/home/user/backup/')
## if you want to preserve the meta-data of acetylene.txt
## then you should use shutil.copy2()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment