Skip to content

Commit

Permalink
temporary workaround for EOS-5754 (cs3org#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode authored Jul 21, 2023
1 parent 13b77ae commit 1ab7577
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions pkg/eosclient/eosbinary/eosbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ab7577

Please sign in to comment.