chore: update clientfilesystemread.go

Signed-off-by: rrylee <rrylee1994@gmail.com>
This commit is contained in:
landlord 2022-04-10 21:33:49 +08:00 committed by rrylee
parent e110ac05a2
commit c4ff6f9aa8

View File

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