gm icon indicating copy to clipboard operation
gm copied to clipboard

filesize in bytes

Open PolGuixe opened this issue 8 years ago • 1 comments

Is it possible to optain the filesize in bytes? the filesize getter returns a string e.g. '1.8MB'.

PolGuixe avatar Feb 11 '17 23:02 PolGuixe

Did anyone ever figure this out? I've tried splitting it with a regex to pull out the number and units and then multiplying according to the multiplier, but the problem is that this doesn't seem to give me exact figures... a 19,382,069 byte file might just give me 19,398,656 bytes (18.5 * 1024^2) because the size only gives me 18.4.

amber-cd avatar Oct 29 '19 14:10 amber-cd