always use create mode in savePack
This commit is contained in:
+1
-1
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user