Skip to content

Commit 9947481

Browse files
committed
fix: support upload to cos dir
1 parent 3a858f7 commit 9947481

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/baas/cos/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,9 @@ class Cos {
510510
const dirToUploadPath = inputs.src;
511511
const uploadDict = {
512512
bucket: inputs.bucket,
513+
keyPrefix: inputs.keyPrefix || '/',
513514
};
515+
514516
if (fs.lstatSync(dirToUploadPath).isDirectory()) {
515517
uploadDict.dir = dirToUploadPath;
516518
} else {

0 commit comments

Comments
 (0)