'Will filter if instructed to do so the result to remove matching criteria
:param result: (list) of dicts returned by Snakebite ls
:param ignored_ext: (list) of ignored extentions
:param ignore_copying: (bool) shall we ignore ?
:return: (list) of dicts which were not removed'

@staticmethod
def filter_for_ignored_ext(result, ignored_ext, ignore_copying):

    if ignore_copying:
        regex_builder = ('^.*\\.(%s$)$' % '$|'.join(ignored_ext))
        ignored_extentions_regex = re.compile(regex_builder)
        logging.debug('Filtering    result    for    ignored    extentions:    %s    in    files    %s', ignored_extentions_regex.pattern, map((lambda x: x['path']), result))
        result = [x for x in result if (not ignored_extentions_regex.match(x['path']))]
        logging.debug('HdfsSensor.poke:    after    ext    filter    result    is    %s', result)
    return result
