always use create mode in savePack

This commit is contained in:
2026-02-15 05:04:43 -08:00
parent fa5c7d8937
commit 1b06371877
+1 -1
View File
@@ -171,7 +171,7 @@ export async function savePack(pack: PackwizPack, hashes?: boolean) {
} else {
delete entry.hash
}
const fileHandle = await getFileHandle(pack.packDirectoryHandle, packIndexDirname + "/" + entry.file)
const fileHandle = await getFileHandle(pack.packDirectoryHandle, packIndexDirname + "/" + entry.file, { "create": true })
await writeFile(fileHandle, packFileBytes)
})
await getFileHandle(pack.packDirectoryHandle, pack.packMetaData.index.file, { "create": true }).then(async packIndexFileHandle => {