Browse Source

correct filtering

pull/2321/head
Chris Lu 3 years ago
parent
commit
d983aa4c7d
  1. 2
      weed/shell/command_remote_cache.go
  2. 2
      weed/shell/command_remote_uncache.go

2
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 return true // true means recursive traversal should continue
} }
if fileFilter.matches(entry) {
if !fileFilter.matches(entry) {
return true return true
} }

2
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 return true // true means recursive traversal should continue
} }
if fileFilter.matches(entry) {
if !fileFilter.matches(entry) {
return true return true
} }

Loading…
Cancel
Save