Module pydsc :: Class filter_by_path_t

Class filter_by_path_t

source code

The instance of this class will help user to define filter, that will exclude modules from being checked

Nested Classes
  FILTER_TYPE
defines few filter constants
Instance Methods
 
__init__(self, what, ftype)
what - list of paths, could contain file and directory names ftype - FILTER_TYPE constant
source code
 
check(self, source_file)
returns True if source_file should be checked, False otherwise
source code
Static Methods
 
contains_parent_dir(path, dirs)
returns true if one of the directories is root directory for the path, false otherwise
source code
Method Details

contains_parent_dir(path, dirs)
Static Method

source code 

returns true if one of the directories is root directory for the path, false otherwise

Parameters:
  • path (str) - path
  • dirs ([ str ]) - list of directories and\or files
Returns:
bool