1
0
mirror of https://github.com/rclone/rclone.git synced 2026-01-10 04:23:28 +00:00
Files
rclone/fs
Nick Craig-Wood e7c46912a3 fs: fix corruption of SizeSuffix with "B" suffix in config (eg --min-size)
Before this change, the config system round tripped fs.SizeSuffix
values through strings like this, corrupting them in the process.

    "2B" -> 2 -> "2" -> 2048

This caused `--min-size 2B` to be interpreted as `--min-size 2k`.

This fix makes sure SizeSuffix values have a "B" suffix when turned
into a string where necessary, so it becomes

    "2B" -> 2 -> "2B" -> 2

In rclone v2 we should probably declare unsuffixed SizeSuffix values
are in bytes not kBytes (done for rsync compatibility) but this would
be a backwards incompatible change which we don't want for v1.

Fixes #8437
Fixes #8212
Fixes #5169
2025-04-30 16:09:30 +01:00
..
2022-11-07 11:41:47 +00:00
2023-10-23 15:43:55 +01:00
2018-08-21 10:58:59 +01:00
2024-12-13 12:43:20 +00:00
2024-08-15 22:01:52 +01:00
2025-02-14 17:14:31 +00:00