def should_include(path, exclude_patterns, include_patterns):
 for pattern in exclude_patterns:
  if match_path(path, pattern):
   for pattern in include_patterns:
    if match_path(path, pattern):
     return True
   return False
 return True

def should_include ( path , exclude_patterns , include_patterns ) : for pattern in exclude_patterns : if match_path ( path , pattern ) : for pattern in include_patterns : if match_path ( path , pattern ) : return True return False return True
given a path .