Skip to content

Commit

Permalink
workaround bogus mtime (cs3org#4489)
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode authored Jan 30, 2024
1 parent f89a589 commit 89655e0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/eosclient/eosbinary/eosbinary.go
Original file line number Diff line number Diff line change
Expand Up @@ -1205,12 +1205,8 @@ func (c *Client) mapToFileInfo(ctx context.Context, kv, attrs map[string]string,
}
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)
}

var ctimesec, ctimenanos uint64
Expand Down

0 comments on commit 89655e0

Please sign in to comment.