diff options
Diffstat (limited to 'weed/filer2/filerstore.go')
| -rw-r--r-- | weed/filer2/filerstore.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/filer2/filerstore.go b/weed/filer2/filerstore.go index 642ebb3c8..b55aeb4d6 100644 --- a/weed/filer2/filerstore.go +++ b/weed/filer2/filerstore.go @@ -138,7 +138,7 @@ func (fsw *FilerStoreWrapper) ListDirectoryPrefixedEntries(ctx context.Context, stats.FilerStoreHistogram.WithLabelValues(fsw.ActualStore.GetName(), "list").Observe(time.Since(start).Seconds()) }() entries, err := fsw.ActualStore.ListDirectoryPrefixedEntries(ctx, dirPath, startFileName, includeStartFile, limit, prefix) - if err.Error() == UnsupportedListDirectoryPrefixedErr.Error() { + if err.Error() == ErrUnsupportedListDirectoryPrefixed.Error() { count := 0 notPrefixed, err := fsw.ActualStore.ListDirectoryEntries(ctx, dirPath, startFileName, includeStartFile, limit) if err != nil { |
