REST API: Actual folder size in /rest/db/status response

If appears that Syncthing adds 128 bytes of overhead for every subdirectory found under a synced folder id. Am I correct here?

If so, would it be possible to add a new field (ex: “fileSystemBytes”) to the /rest/db/status response message ? This field would represent the actual folder size as reported by the filesystem

Thanks,

-R

Yep, we do that. No, we don’t know the actual size on disk. It’s complicated and unknowable depending on what “size on disk” even means and different tools will give you different answers (consider compression, cluster sizes, tail packing, etc.). You’re better off asking your filesystem what it thinks, really. Our size estimate is mostly geared towards how much data transfer / effort a certain item represents to us.

1 Like

Understood !

Thanks,

-R