CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
edmUtils.py
Go to the documentation of this file.
1 import ROOT, subprocess, json, re
2 
3 def edmFileLs(fname):
4  # if it's not a cms LFN and it does not have a protocol, put file: for it
5  if not re.match(r"(/store|\w+:).*",fname): fname = "file:"+fname
6  out = subprocess.check_output(['edmFileUtil','--ls','-j',fname])
7  jdata = json.loads(out)
8  return jdata[0]
def edmFileLs
Definition: edmUtils.py:3