2 from __future__
import print_function
4 from CommonMethods
import *
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
25 if __name__ ==
"__main__":
void print(TMatrixD &m, const char *label=nullptr, bool mathematicaFormat=false)