Jump to content




fs.getSize Page


1 reply to this topic

#1 HPWebcamAble

  • Members
  • 933 posts
  • LocationWeb Development

Posted 17 August 2015 - 03:12 AM

http://computercraft...wiki/Fs.getSize


Quote

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.

#2 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 17 August 2015 - 07: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.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users