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
All checks were successful
Actions / Build and Push Documentation (push) Successful in 6m45s
This commit is contained in:
parent
c54c2acb1d
commit
95f8e358dd
1 changed files with 5 additions and 1 deletions
|
@ -199,7 +199,11 @@ export async function iteratePackwizIndex(
|
||||||
if (state) {
|
if (state) {
|
||||||
const stateHash =
|
const stateHash =
|
||||||
state.hashes[packwiz.index.location.diff(file.file).join("/")];
|
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(
|
console.log(
|
||||||
`Skipping already downloaded file ${file.file.toString()}`,
|
`Skipping already downloaded file ${file.file.toString()}`,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Reference in a new issue