feat(sync): download a file if it doesn't exist regardless of stateHash status
All checks were successful
Actions / Build and Push Documentation (push) Successful in 6m45s

This commit is contained in:
cswimr 2025-02-13 00:23:25 -06:00
parent c54c2acb1d
commit 95f8e358dd
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087

View file

@ -199,7 +199,11 @@ export async function iteratePackwizIndex(
if (state) {
const stateHash =
state.hashes[packwiz.index.location.diff(file.file).join("/")];
if (stateHash?.hash && stateHash.hash === file.hash) {
if (
stateHash?.hash &&
stateHash.hash === file.hash &&
(await saveLocation.exists())
) {
console.log(
`Skipping already downloaded file ${file.file.toString()}`,
);