From 2b447001d148fa6cdf141a634598bcbaad245255 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Fri, 4 Jun 2021 14:40:23 -0300 Subject: [PATCH] truncate file on open --- navigator/scripts/write-chunks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navigator/scripts/write-chunks.py b/navigator/scripts/write-chunks.py index acec7e0..1c06593 100755 --- a/navigator/scripts/write-chunks.py +++ b/navigator/scripts/write-chunks.py @@ -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)