From 7ed251ea61342b0846f1aa1133f378b6e242624f Mon Sep 17 00:00:00 2001 From: yinlinyang Date: Wed, 30 Dec 2020 16:54:22 +0800 Subject: [PATCH] Update index.js --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 18134ab..dfa681b 100644 --- a/src/index.js +++ b/src/index.js @@ -28,7 +28,7 @@ const fg = require('fast-glob'); } // upload dir if (stat.isDirectory()) { - const files = fg.sync(`${assetPath}/**`, { dot: false, onlyFiles: true }) + const files = fg.sync(`${assetPath}/**`, { dot: false, onlyFiles: false }) const res = await Promise.all( files.map(file => { const filename = file.replace(`${assetPath}/`, '')