def path_filter_patterns(paths, patterns, root=None):
 from headphones import logger
 ignored = 0
 for path in paths[:]:
  if path_match_patterns(path, patterns):
   logger.debug('Path ignored by pattern: %s', os.path.join((root or ''), path))
   ignored += 1
   paths.remove(path)
 return ignored

def path_filter_patterns ( paths , patterns , root = None ) : from headphones import logger ignored = 0 for path in paths [ : ] : if path_match_patterns ( path , patterns ) : logger . debug ( 'Path ignored by pattern: %s' , os . path . join ( ( root or '' ) , path ) ) ignored += 1 paths . remove ( path ) return ignored
scan for ignored paths based on glob patterns .