CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
edmUtils Namespace Reference

Functions

def edmFileLs
 

Function Documentation

def edmUtils.edmFileLs (   fname)

Definition at line 3 of file edmUtils.py.

Referenced by cmsswPreprocessor.CmsswPreprocessor.run().

3 
4 def edmFileLs(fname):
5  # if it's not a cms LFN and it does not have a protocol, put file: for it
6  if not re.match(r"(/store|\w+:).*",fname): fname = "file:"+fname
7  out = subprocess.check_output(['edmFileUtil','--ls','-j',fname])
8  jdata = json.loads(out)
9  return jdata[0]
def edmFileLs
Definition: edmUtils.py:3