MCPcopy Create free account
hub / github.com/daniel2005d/mapXplore / _is_base64_valid

Method _is_base64_valid

lib/file_reader.py:126–134  ·  view source on GitHub ↗
(self, text:str)

Source from the content-addressed store, hash-verified

124
125
126 def _is_base64_valid(self, text:str)->bool:
127 if text is None or text.isdigit() or text == '':
128 return False, None
129 else:
130 for character in text:
131 if character in self._invalid_b64_chars:
132 return False, None
133
134 return True, None
135
136 def save_file(self, content,format:str, filename=None)->str:
137 if content:

Callers 1

get_from_base64Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected