Definition at line 5 of file copyFiles.py.
References SimDataFormats::CaloAnalysis.cp, cmsRelvalreport.exit, and eostools.ls().
7 error =
"Usage: copyFiles.py fromDir destDir (optional filter)" 11 if (fromDir[len(fromDir)-1] !=
'/'):
13 destDir = sys.argv[2] +
"/" 17 fileList =
ls(fromDir,filter)
18 copiedFiles =
cp(fromDir,destDir,fileList)
20 if len(copiedFiles) != len(fileList):
21 error =
"ERROR: I couldn't copy all files from " + fromDir