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

Function normalize_ext

main.py:156–162  ·  view source on GitHub ↗
(ext)

Source from the content-addressed store, hash-verified

154
155
156def normalize_ext(ext):
157 if not ext:
158 return ""
159 ext = ext.lower().strip()
160 if ext and not ext.startswith('.'):
161 ext = '.' + ext
162 return ext
163
164
165def ensure_whitelist_file():

Callers 4

read_whitelist_fileFunction · 0.85
is_protected_file_pathFunction · 0.85
build_whitelistMethod · 0.85
is_in_whitelistMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected