From d983aa4c7dc4a8f6dc7d783d69669b74df41a749 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sat, 4 Sep 2021 13:58:14 -0700 Subject: [PATCH] correct filtering --- weed/shell/command_remote_cache.go | 2 +- weed/shell/command_remote_uncache.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/weed/shell/command_remote_cache.go b/weed/shell/command_remote_cache.go index 488fea7ea..51f170666 100644 --- a/weed/shell/command_remote_cache.go +++ b/weed/shell/command_remote_cache.go @@ -130,7 +130,7 @@ func (c *commandRemoteCache) cacheContentData(commandEnv *CommandEnv, writer io. return true // true means recursive traversal should continue } - if fileFilter.matches(entry) { + if !fileFilter.matches(entry) { return true } diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go index 2788edbae..77f3a2575 100644 --- a/weed/shell/command_remote_uncache.go +++ b/weed/shell/command_remote_uncache.go @@ -88,7 +88,7 @@ func (c *commandRemoteUncache) uncacheContentData(commandEnv *CommandEnv, writer return true // true means recursive traversal should continue } - if fileFilter.matches(entry) { + if !fileFilter.matches(entry) { return true }