0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-22 01:00:40 +00:00

fix issue #17, NoSuchKey

This commit is contained in:
m00k 2019-01-04 12:08:05 +01:00
parent d22af6277e
commit 938f8cda19

View File

@ -125,8 +125,9 @@ func (p *Plugin) createSyncJobs() {
if p.Delete { if p.Delete {
for _, r := range remote { for _, r := range remote {
found := false found := false
rPath := strings.TrimPrefix(r, p.Target+"/")
for _, l := range local { for _, l := range local {
if l == r { if l == rPath {
found = true found = true
break break
} }