Commit 720625a
Fix backup restore failing on large zips with Z_BUF_ERROR
unzipper.Extract().promise() has a race condition on large zip files
where the promise resolves before write buffers are flushed, causing
zlib to see a premature end-of-stream. Switch both backup restore and
Obsidian import to unzipper.Open.file() which reads the central
directory first and is reliable for large archives.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 55af24b commit 720625a
2 files changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
308 | | - | |
309 | | - | |
310 | | - | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
311 | 312 | | |
312 | 313 | | |
313 | 314 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | | - | |
130 | | - | |
131 | | - | |
| 129 | + | |
| 130 | + | |
132 | 131 | | |
133 | 132 | | |
134 | 133 | | |
| |||
0 commit comments