CMS 3D CMS Logo

Classes | Namespaces | Functions
chain.py File Reference

Go to the source code of this file.

Classes

class  chain.Chain
 

Namespaces

 chain
 

Functions

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

Function Documentation

◆ is_lfn()

def chain.is_lfn (   fn)

Definition at line 12 of file chain.py.

12 def is_lfn(fn):
13  return fn.startswith("/store")
14 

Referenced by is_pfn().

◆ is_pfn()

def chain.is_pfn (   fn)

Definition at line 9 of file chain.py.

9 def is_pfn(fn):
10  return not (is_lfn(fn) or is_rootfn(fn))
11 

References is_lfn(), and is_rootfn().

◆ is_rootfn()

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.

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 

Referenced by is_pfn().

is_pfn
def is_pfn(fn)
Definition: chain.py:9
is_lfn
def is_lfn(fn)
Definition: chain.py:12
is_rootfn
def is_rootfn(fn)
Definition: chain.py:15