1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/env python # # Allow copying of $1 to $2 but if files in $1 disappear during the copy operation, # don't error. # import sys import shutil try: shutil.copytree(sys.argv[1], sys.argv[2]) except shutil.Error: pass