From 1ab7577c1ba20199a8b1fedfe0c2bf637a8343e1 Mon Sep 17 00:00:00 2001 From: Hugo Labrador Date: Fri, 21 Jul 2023 13:02:25 +0200 Subject: [PATCH] temporary workaround for EOS-5754 (#45) --- pkg/eosclient/eosbinary/eosbinary.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/pkg/eosclient/eosbinary/eosbinary.go b/pkg/eosclient/eosbinary/eosbinary.go index b120719363..c21a715c37 100644 --- a/pkg/eosclient/eosbinary/eosbinary.go +++ b/pkg/eosclient/eosbinary/eosbinary.go @@ -1176,18 +1176,15 @@ func (c *Client) mapToFileInfo(ctx context.Context, kv, attrs map[string]string, if mtimesec, err = strconv.ParseUint(stimeSplit[0], 10, 64); err == nil { mtimeSet = true } + if mtimenanos, err = strconv.ParseUint(stimeSplit[1], 10, 32); err != nil { mtimeSet = false } } if !mtimeSet { mtimeSplit := strings.Split(kv["mtime"], ".") - if mtimesec, err = strconv.ParseUint(mtimeSplit[0], 10, 64); err != nil { - return nil, err - } - if mtimenanos, err = strconv.ParseUint(mtimeSplit[1], 10, 32); err != nil { - return nil, err - } + mtimesec, _ = strconv.ParseUint(mtimeSplit[0], 10, 64) + mtimenanos, _ = strconv.ParseUint(mtimeSplit[1], 10, 32) } isDir := false