From c4c6fc4eea3588e3389a3a01c2d14bc3abae2215 Mon Sep 17 00:00:00 2001 From: Gildas Date: Wed, 24 Jul 2024 18:38:43 +0200 Subject: [PATCH] fix `--dump-content` option --- single-file-cli-api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/single-file-cli-api.js b/single-file-cli-api.js index f254272..1d4690e 100644 --- a/single-file-cli-api.js +++ b/single-file-cli-api.js @@ -277,7 +277,7 @@ async function capturePage(options) { } else { filename = await getFilename(filename, options); } - if (filename) { + if (filename && !options.dumpContent) { const directoryName = await path.dirname(filename); if (directoryName !== ".") { await mkdir(directoryName, { recursive: true });