Merge pull request #48 from m00k/master

fix issue #17, NoSuchKey
This commit is contained in:
Thomas Boerger 2019-01-17 13:18:53 +01:00 committed by GitHub
commit 7f1c4f4b96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
} }