aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/cp-noerror
blob: fdb3d2d19aaa7c696867a26592c4488a68b0eec6 (plain)
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