(path, progress = false)
| 347 | } |
| 348 | |
| 349 | async function updateProgress(path, progress = false) |
| 350 | { |
| 351 | progress = progress || await get(path, false); // false to force a recount |
| 352 | |
| 353 | const sizes = [ |
| 354 | false, |
| 355 | 100, |
| 356 | 150, |
| 357 | 200, |
| 358 | 250, |
| 359 | 300, |
| 360 | ]; |
| 361 | |
| 362 | for(const size of sizes) |
| 363 | { |
| 364 | const folderSha = sha1(path+(size ? '?size='+size : '')); |
| 365 | dom.addProgressToDom(folderSha, progress, true); |
| 366 | } |
| 367 | } |
| 368 | |
| 369 | function purge() |
| 370 | { |