Definition at line 6 of file copyFiles.py.
References beamvalidation.exit(), eostools.ls(), and print().
9 error =
"Usage: copyFiles.py fromDir destDir (optional filter)"
13 if (fromDir[len(fromDir)-1] !=
'/'):
15 destDir = sys.argv[2] +
"/"
19 fileList =
ls(fromDir,filter)
20 copiedFiles =
cp(fromDir,destDir,fileList)
22 if len(copiedFiles) != len(fileList):
23 error =
"ERROR: I couldn't copy all files from " + fromDir
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)