From a3c62052c77e82414ab509598fec6817acdac116 Mon Sep 17 00:00:00 2001 From: Sebastian Kurfuerst Date: Thu, 16 May 2024 09:54:09 +0200 Subject: [PATCH] FEATURE: make synco more resilient --- pkg/frameworks/flowServe/flowServe.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/frameworks/flowServe/flowServe.go b/pkg/frameworks/flowServe/flowServe.go index bb08cc9..b550f17 100644 --- a/pkg/frameworks/flowServe/flowServe.go +++ b/pkg/frameworks/flowServe/flowServe.go @@ -308,7 +308,8 @@ func (f flowServe) extractAllResourcesFromFolder(transferSession *serve.Transfer } realFileInfo, err := os.Lstat(realPath) if err != nil { - return err + pterm.Error.Printfln("Could NOT read file (skipping): %s: %s", realPath, err) + return nil } filePath = strings.TrimPrefix(filePath, persistentResourcesBasePath)