EnvConfig.Variable.EmptyDirsRemover Class Reference
Inheritance diagram for EnvConfig.Variable.EmptyDirsRemover:
Collaboration diagram for EnvConfig.Variable.EmptyDirsRemover:

Public Member Functions

def process (self, variable, value)
 
- Public Member Functions inherited from EnvConfig.Variable.ListProcessor
def isTarget (self, variable)
 
- Public Member Functions inherited from EnvConfig.Variable.VariableProcessor
def __init__ (self, env)
 
def isTarget (self, variable)
 
def process (self, variable, value)
 
def __call__ (self, variable, value)
 

Detailed Description

Remove empty or not existing directories from lists.

Definition at line 123 of file Variable.py.

Member Function Documentation

def EnvConfig.Variable.EmptyDirsRemover.process (   self,
  variable,
  value 
)

Definition at line 127 of file Variable.py.

127  def process(self, variable, value):
128  from os.path import isdir
129  from os import listdir
130  return [s for s in value if s.endswith('.zip') or (isdir(s) and listdir(s))]
131 
def process(self, variable, value)
Definition: Variable.py:127

The documentation for this class was generated from the following file: