mirror of
https://github.com/login-securite/DonPAPI
synced 2025-01-30 11:12:35 +00:00
Add generic dump function
This commit is contained in:
parent
08282a06d2
commit
6e44a69aee
@ -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)
|
Loading…
Reference in New Issue
Block a user