Definition at line 4 of file copyFromCastor.py.
References CommonMethods.cp(), cmsRelvalreport.exit, and eostools.ls().
7 error =
"Usage: cpFromCastor fromDir toDir (optional filter)"
9 user = os.getenv(
"USER")
10 castorDir =
"/castor/cern.ch/cms/store/caf/user/" + user +
"/" + sys.argv[1] +
"/"
14 fileList =
ls(castorDir,filter)
16 copiedFiles =
cp(castorDir,destDir,fileList)
18 if len(copiedFiles) != len(fileList):
19 error =
"ERROR: I couldn't copy all files from castor"