MCPcopy
hub / github.com/blackboxo/CleanMyWechat / is_protected_file_path

Function is_protected_file_path

main.py:330–336  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

328
329
330def is_protected_file_path(path):
331 path_str = str(path)
332 ext = normalize_ext(os.path.splitext(path_str)[1])
333 if ext in SAFE_SKIP_EXTS:
334 return True
335 parts = [p.lower() for p in Path(path_str).parts]
336 return any(p in PROTECTED_DIR_NAMES for p in parts)
337
338
339def apply_startup_setting(config):

Callers 2

is_in_whitelistMethod · 0.85
add_file_if_matchMethod · 0.85

Calls 1

normalize_extFunction · 0.85

Tested by

no test coverage detected