Skip to content

Commit 5737a83

Browse files
committed
chore: use fileName inside of fileKey
1 parent 29d7a20 commit 5737a83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const run = async (config: R2Config) => {
9393
console.log(config.destinationDir);
9494
//const fileName = file.replace(config.sourceDir, "");
9595
const fileName = files[file];
96-
const fileKey = path.join(config.destinationDir !== "" ? config.destinationDir : config.sourceDir, files[file]);
96+
const fileKey = path.join(config.destinationDir !== "" ? config.destinationDir : config.sourceDir, fileName);
9797

9898
if (fileName.includes('.gitkeep'))
9999
continue;

0 commit comments

Comments
 (0)