Skip to content

Commit

Permalink
Allow same file listed multiple times to have alternate names
Browse files Browse the repository at this point in the history
  • Loading branch information
FW-DavisBrown committed Nov 4, 2019
1 parent 52a6462 commit b73f04d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions s3-zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ s3Zip.archiveStream = function (stream, filesS3, filesZip) {
// Place files_s3[i] into the archive as files_zip[i]
const i = filesS3.indexOf(file.path.startsWith(folder) ? file.path.substr(folder.length) : file.path)
fname = (i >= 0 && i < filesZip.length) ? filesZip[i] : file.path
filesS3[i] = ''
} else {
// Just use the S3 file name
fname = file.path
Expand Down

0 comments on commit b73f04d

Please sign in to comment.