MCPcopy Create free account
hub / github.com/echQoQ/RustSL / read_binary_file

Function read_binary_file

encrypt.py:9–15  ·  view source on GitHub ↗
(file_path)

Source from the content-addressed store, hash-verified

7
8
9def read_binary_file(file_path):
10 try:
11 with open(file_path, 'rb') as f:
12 return f.read()
13 except FileNotFoundError:
14 print(f"Error: The file {file_path} does not exist.")
15 return None
16
17
18def save(file_path, b64_data):

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected