From c4ff6f9aa8c7001e23eb2e47e0befad7c16ed22f Mon Sep 17 00:00:00 2001 From: landlord Date: Sun, 10 Apr 2022 21:33:49 +0800 Subject: [PATCH] chore: update clientfilesystemread.go Signed-off-by: rrylee --- plan/task/clientfilesystemread.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plan/task/clientfilesystemread.go b/plan/task/clientfilesystemread.go index 6d7fab49..af30382e 100644 --- a/plan/task/clientfilesystemread.go +++ b/plan/task/clientfilesystemread.go @@ -39,7 +39,7 @@ func (t clientFilesystemReadTask) PreRun(_ context.Context, pctx *plancontext.Co return fmt.Errorf("path %q cannot be stat'd: %w", path, err) } - if plancontext.IsFSValue(v.Lookup("contents")) { + if isFS { pctx.LocalDirs.Add(path) }