Add generic dump function

This commit is contained in:
Defte 2024-10-21 10:54:33 +02:00
parent 08282a06d2
commit 6e44a69aee

View File

@ -123,4 +123,9 @@ def is_guid(value: str):
if GUID.match(value):
return True
else:
return False
return False
def dump_file_to_loot_directories(local_filepath: str, file_content: bytes=b"") -> None:
os.makedirs(os.path.dirname(local_filepath), exist_ok = True)
with open(local_filepath, "wb") as f:
f.write(file_content)