5 import os, shutil, subprocess
7 filemap = config.filemap
10 for src, dest
in filemap.items():
12 if os.access(src, os.R_OK):
13 if dest.startswith(
'root://'):
15 subprocess.check_call([
'xrdcp', src, os.path.join(dest, prefix +
'_' + os.path.basename(src))])
16 except subprocess.CalledProcessError
as e:
20 shutil.copy2(src, os.path.join(dest, prefix +
'_' + os.path.basename(src)))