diff options
| author | Chris Lu <chris.lu@gmail.com> | 2021-09-04 13:45:39 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2021-09-04 13:45:39 -0700 |
| commit | 49952ba905bc4060b352deb3a0aa0f67b9dfee73 (patch) | |
| tree | c6026286697daf08471e539869d6a5d4a68b6c0e /weed/shell/command_remote_uncache.go | |
| parent | 99d4594ee84b40f32a33b0cbedfa00ec879a7229 (diff) | |
| download | seaweedfs-49952ba905bc4060b352deb3a0aa0f67b9dfee73.tar.xz seaweedfs-49952ba905bc4060b352deb3a0aa0f67b9dfee73.zip | |
fix cache/uncache filters
Diffstat (limited to 'weed/shell/command_remote_uncache.go')
| -rw-r--r-- | weed/shell/command_remote_uncache.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/shell/command_remote_uncache.go b/weed/shell/command_remote_uncache.go index a2806b882..2788edbae 100644 --- a/weed/shell/command_remote_uncache.go +++ b/weed/shell/command_remote_uncache.go @@ -141,12 +141,12 @@ func newFileFilter(remoteMountCommand *flag.FlagSet) (ff *FileFilter) { func (ff *FileFilter) matches(entry *filer_pb.Entry) bool { if *ff.include != "" { if ok, _ := filepath.Match(*ff.include, entry.Name); !ok { - return true + return false } } if *ff.exclude != "" { if ok, _ := filepath.Match(*ff.exclude, entry.Name); ok { - return true + return false } } if *ff.minSize != -1 { @@ -169,5 +169,5 @@ func (ff *FileFilter) matches(entry *filer_pb.Entry) bool { return false } } - return false + return true } |
