Files
notecast/utils/save_to_file.py
T

10 lines
217 B
Python

def save_to_file(
thing: str | dict,
path: str,
):
if isinstance(thing, dict):
pass
elif isinstance(thing, str):
with open(path, "w") as outputfile:
outputfile.write(thing)