Skip to content

Commit

Permalink
s3: ignore dirs (#4382)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Jan 7, 2025
1 parent 3456e15 commit 1d44f05
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 110 deletions.
2 changes: 1 addition & 1 deletion lib/plugins/gcs/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function uploadLatestFiles(dir, gcsOptions, prefix) {
}

async function upload(dir, gcsOptions, prefix) {
const files = await recursiveReaddir(dir);
const files = await recursiveReaddir(dir, true);
const promises = [];

const storage = new Storage({
Expand Down
2 changes: 1 addition & 1 deletion lib/plugins/s3/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default class S3Plugin extends SitespeedioPlugin {
);

try {
const files = await recursiveReaddir(baseDir);
const files = await recursiveReaddir(baseDir, true);
const limit = pLimit(s3Options.maxAsyncS3 || 20);
const uploadPromises = files.map(file =>
limit(() =>
Expand Down
118 changes: 10 additions & 108 deletions npm-shrinkwrap.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1d44f05

Please sign in to comment.