1
mirror of https://github.com/rclone/rclone synced 2024-11-14 13:36:24 +01:00
rclone/backend/box
Nick Craig-Wood a0c65deca8 box: Parse file/directory size as a floating point number
Very large directories can have their sizes returned as floating point
numbers, eg `1.0034576985781e+14` from the box API.

Before this change this would fail to parse as an int64.

This change parses the size as a float64 instead which will be
perfectly accurate for sizes up to 2**56 which is about 9 PB.

It is unknown whether box themselves use a float64 as an intermediate
representation in the API or not - it seems likely.

Fixes #2261
2018-04-19 21:04:52 +01:00
..
api box: Parse file/directory size as a floating point number 2018-04-19 21:04:52 +01:00
box_test.go Make integration tests use go1.7+ nested tests #2154 2018-04-08 15:04:14 +01:00
box.go box: Parse file/directory size as a floating point number 2018-04-19 21:04:52 +01:00
upload.go box: improve accounting for chunked uploads 2018-02-02 15:14:41 +00:00