Definition at line 6 of file copyFiles.py.
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
References CommonMethods.cp(), beamvalidation.exit(), eostools.ls(), and print().