Using stat to obtain file size results in an inaccurate value being produced.
We need to be extremely accurate with respect to file sizes as to assure the user can correctly estimate the size of backup operations.
We previously used filesystem::directory_entry::file_size, which produced accurate sizes on Linux. Assuming this is the same for Windows, the conversion should be justified.
ISSUE:
We previously used
filesystem::directory_entry::file_size
, which produced accurate sizes on Linux. Assuming this is the same for Windows, the conversion should be justified.