From 94e6d8a68d24b6f512360e4ab46438178d62e318 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 16 Aug 2023 09:50:20 -0300 Subject: thumbs: traverse with wiki-matching posix style when verifying paths --- src/upd8.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/upd8.js') diff --git a/src/upd8.js b/src/upd8.js index f659b360..51957225 100755 --- a/src/upd8.js +++ b/src/upd8.js @@ -708,6 +708,7 @@ async function main() { // cheat and get file sizes for all images under media. (This includes // additional files which are images.) const imageFilePaths = (await traverse(mediaPath, { + pathStyle: 'device', filterDir: dir => dir !== '.git', filterFile: file => ( ['.png', '.gif', '.jpg'].includes(path.extname(file)) && -- cgit 1.3.0-6-gf8a5