Add file read function

This commit is contained in:
Riyyi
2026-08-09 15:40:35 +02:00
parent 2a0c478f7a
commit 78ba36ae07
6 changed files with 158 additions and 23 deletions
+1 -1
View File
@@ -136,7 +136,7 @@ create_new_chunk :: proc(
) -> io.Stream {
// Remove old chunk
chunk_path := compute_chunk_path(output_path, chunk_index, allocator)
defer delete(chunk_path)
defer delete(chunk_path, allocator)
if os.exists(chunk_path) {
rm_err := os.remove(chunk_path)
if rm_err != nil {