This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
HPWebcamAble's profile picture

fs.getSize Page

Started by HPWebcamAble, 17 August 2015 - 02:12 AM
HPWebcamAble #1
Posted 17 August 2015 - 04:12 AM
http://computercraft...wiki/Fs.getSize


ComputerCraft will show that any file smaller than 512 bytes as 512 bytes


What? No, it doesn't…
http://imgur.com/iBsrjLE

(The size shown there was gotten from 'fs.getSize()')
The file 'log' is really short, 25 lines, and 396 in 'length' according to Notepad++
If the file really is 396 bytes, that means fs.getSize doesn't even include the size of the title, like the wiki also states.


I'd edit the page myself, but…
I don't actually have editing rights. Never need to anyway.
This might be a derp on my part, wanted to check first.
Bomb Bloke #2
Posted 17 August 2015 - 08:25 AM
The page links a citation, which indicates it was correct for CC 1.52. I'll take a stab later at figuring out which version changed it, my guess being 1.53.