CMS 3D CMS Logo

Functions
edmUtils Namespace Reference

Functions

def edmFileLs (fname)
 

Function Documentation

◆ edmFileLs()

def edmUtils.edmFileLs (   fname)

Definition at line 3 of file edmUtils.py.

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]

Referenced by cmsswPreprocessor.CmsswPreprocessor.run().

edmUtils.edmFileLs
def edmFileLs(fname)
Definition: edmUtils.py:3