From 6e9e272fd271b2ea5bd5deccfd19c808d9f71e09 Mon Sep 17 00:00:00 2001 From: ston1th Date: Mon, 2 Sep 2019 09:58:18 +0200 Subject: [PATCH] bug fix --- filter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/filter.go b/filter.go index 4c3dc38..8b039a6 100644 --- a/filter.go +++ b/filter.go @@ -40,9 +40,9 @@ func NewMacOSFilter() *MacOSFilter { // Filter implements the Filter interface func (f *MacOSFilter) Filter(path string) error { - _, f := filepath.Split(path) + _, file := filepath.Split(path) for _, m := range f.match { - if m(f) { + if m(file) { return ErrMacOSFilter } }