truncate file on open

This commit is contained in:
joshuaboud 2021-06-04 14:40:23 -03:00
parent 2da2b2705a
commit 2b447001d1
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E

View File

@ -43,7 +43,7 @@ def main():
sys.exit(1)
path = sys.argv[1]
try:
file = open(path, "xb")
file = open(path, "wb")
except Exception as e:
print(e)
sys.exit(1)