🌈️ apply a wallpaper based on the weather outside
0

Configure Feed

Select the types of activity you want to include in your feed.

fix(analyze): move file only if it exists

Angel Wang (Jun 26, 2026, 6:10 PM -0600) 4f4fdd55 445733d3

+2 -2
+2 -2
src/analyze/index.ts
··· 18 18 19 19 console.debug(chalkDebug(`Config: \n${JSON.stringify(config, null, 4)}`)) 20 20 21 - if (fs.statSync(cachePath)) { 21 + if (fs.statSync(cachePath, { throwIfNoEntry: false })) { 22 22 await fs.cp(cachePath, `${cachePath}.bak`, { force: true }) 23 23 } 24 24 ··· 28 28 29 29 await analyzeImages(config.imageDir, imageData, cachePath) 30 30 31 - if (fs.statSync(`${cachePath}.bak`)) { 31 + if (fs.statSync(`${cachePath}.bak`, { throwIfNoEntry: false })) { 32 32 await fs.rm(`${cachePath}.bak`, { force: true }) 33 33 }