From 57efb68fcb4b790194a29fe5b9442a32dbfdf89e Mon Sep 17 00:00:00 2001 From: sawka Date: Tue, 18 Feb 2025 18:51:21 -0800 Subject: [PATCH] remove wsh s3 dependency --- pkg/suggestion/filewalk.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/suggestion/filewalk.go b/pkg/suggestion/filewalk.go index d31b728f30..2b7c2595da 100644 --- a/pkg/suggestion/filewalk.go +++ b/pkg/suggestion/filewalk.go @@ -14,8 +14,8 @@ import ( "sync" "time" - "github.com/wavetermdev/waveterm/pkg/remote/fileshare" "github.com/wavetermdev/waveterm/pkg/wshrpc" + "github.com/wavetermdev/waveterm/pkg/wshrpc/wshclient" "golang.org/x/sync/singleflight" ) @@ -155,7 +155,7 @@ func listS3Directory(ctx context.Context, widgetId string, conn string, dir stri // Ensure only one operation populates the cache for this key. value, err, _ := group.Do(key, func() (interface{}, error) { path := conn + ":s3://" + dir - entries, err := fileshare.ListEntries(ctx, path, &wshrpc.FileListOpts{Limit: maxFiles}) + entries, err := wshclient.FileListCommand(wshclient.GetBareRpcClient(), wshrpc.FileListData{Path: path, Opts: &wshrpc.FileListOpts{Limit: maxFiles}}, nil) if err != nil { return nil, err }