coyotte508 HF staff commited on
Commit
0344adb
1 Parent(s): 723c3de

Enforce ZIP 64

Browse files
Files changed (1) hide show
  1. src/lib/check-dduf.ts +3 -1
src/lib/check-dduf.ts CHANGED
@@ -101,7 +101,9 @@ export async function* checkDduf(
101
  fileCount = Number(view.getBigUint64(index + 32, true));
102
 
103
  opts?.log?.('File count zip 64: ' + fileCount);
104
- }
 
 
105
 
106
  opts?.log?.('Central directory size: ' + centralDirSize);
107
  opts?.log?.('Central directory offset: ' + centralDirOffset);
 
101
  fileCount = Number(view.getBigUint64(index + 32, true));
102
 
103
  opts?.log?.('File count zip 64: ' + fileCount);
104
+ } else {
105
+ throw new Error("DDUF files need to be in zip 64 format!")
106
+ }
107
 
108
  opts?.log?.('Central directory size: ' + centralDirSize);
109
  opts?.log?.('Central directory offset: ' + centralDirOffset);