CMS 3D CMS Logo

Classes | Functions
chain Namespace Reference

Classes

class  Chain
 

Functions

def is_lfn (fn)
 
def is_pfn (fn)
 
def is_rootfn (fn)
 

Function Documentation

def chain.is_lfn (   fn)

Definition at line 12 of file chain.py.

Referenced by is_pfn().

12 def is_lfn(fn):
13  return fn.startswith("/store")
14 
def is_lfn(fn)
Definition: chain.py:12
def chain.is_pfn (   fn)

Definition at line 9 of file chain.py.

References is_lfn(), and is_rootfn().

9 def is_pfn(fn):
10  return not (is_lfn(fn) or is_rootfn(fn))
11 
def is_lfn(fn)
Definition: chain.py:12
def is_pfn(fn)
Definition: chain.py:9
def is_rootfn(fn)
Definition: chain.py:15
def chain.is_rootfn (   fn)
To open files like root://, file:// which os.isfile won't find.

Definition at line 15 of file chain.py.

Referenced by is_pfn().

15 def is_rootfn(fn):
16  """
17  To open files like root://, file:// which os.isfile won't find.
18  """
19  return "://" in fn
20 
21 
def is_rootfn(fn)
Definition: chain.py:15