Definition at line 6 of file copyFiles.py.
References SimDataFormats::CaloAnalysis.cp, beamvalidation.exit(), eostools.ls(), and edm.print().
8 error =
"Usage: copyFiles.py fromDir destDir (optional filter)" 12 if (fromDir[len(fromDir)-1] !=
'/'):
14 destDir = sys.argv[2] +
"/" 18 fileList =
ls(fromDir,filter)
19 copiedFiles =
cp(fromDir,destDir,fileList)
21 if len(copiedFiles) != len(fileList):
22 error =
"ERROR: I couldn't copy all files from " + fromDir
S & print(S &os, JobReport::InputFile const &f)