MCPcopy Create free account
hub / github.com/bleachbit/bleachbit / match

Method match

bleachbit/DeepScan.py:77–92  ·  view source on GitHub ↗
(self, dirpath, filename)

Source from the content-addressed store, hash-verified

75 self.nwholeregex = re_compile(search.nwholeregex)
76
77 def match(self, dirpath, filename):
78 full_path = os.path.join(dirpath, filename)
79
80 if self.regex and not self.regex.search(filename):
81 return None
82
83 if self.nregex and self.nregex.search(filename):
84 return None
85
86 if self.wholeregex and not self.wholeregex.search(full_path):
87 return None
88
89 if self.nwholeregex and self.nwholeregex.search(full_path):
90 return None
91
92 return full_path
93
94
95class DeepScan:

Callers 15

_parse_nsis_lang_stringsFunction · 0.80
assertIsLanguageCodeMethod · 0.80
test_journald_regexMethod · 0.80
test_locale_regexMethod · 0.80
get_page_sizeFunction · 0.80
scanMethod · 0.80
get_subpathsMethod · 0.80
get_localizationsMethod · 0.80
run_cleaner_cmdFunction · 0.80
human_to_bytesFunction · 0.80
whitelistedMethod · 0.80
winapp_expand_varsFunction · 0.80

Calls 1

joinMethod · 0.80

Tested by 2

test_journald_regexMethod · 0.64
test_locale_regexMethod · 0.64