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