Skip to content

Commit

Permalink
Enhance cachePurgeMosaic to remove mosaic256 as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dqunbp committed Nov 27, 2024
1 parent 60660c5 commit 101c447
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/cache.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ async function cacheInit() {
}
}

function cachePurgeMosaic() {
return fs.promises.rmdir(`${TILES_CACHE_DIR_PATH}/__mosaic__`);
async function cachePurgeMosaic() {
await fs.promises.rmdir(`${TILES_CACHE_DIR_PATH}/__mosaic__`, { recursive: true });
await fs.promises.rmdir(`${TILES_CACHE_DIR_PATH}/__mosaic256__`, { recursive: true });
}

function mosaicTilesIterable() {
Expand Down

0 comments on commit 101c447

Please sign in to comment.