Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yly24 authored Dec 30, 2020
1 parent 06e0971 commit 7ed251e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}/`, '')
Expand Down

0 comments on commit 7ed251e

Please sign in to comment.