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) }