Skip to content

Commit

Permalink
fix: Fix duplicated files not being checked
Browse files Browse the repository at this point in the history
  • Loading branch information
iamakulov authored and colinmeinke committed Feb 7, 2018
1 parent 8943b59 commit c4bad78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ class Store extends BaseStore {
})
}

exists (fileName) {
exists (fileName, targetDir) {
return new Promise((resolve, reject) => {
return this.s3()
.getObject({
Bucket: this.bucket,
Key: stripLeadingSlash(fileName)
Key: stripLeadingSlash(join(targetDir, fileName))
})
.promise()
.then(() => resolve(true))
Expand Down

0 comments on commit c4bad78

Please sign in to comment.