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

Computer and Floppy space

Started by HometownPotato, 26 April 2014 - 02:32 AM
HometownPotato #1
Posted 26 April 2014 - 04:36 AM
In ComputerCraft.cfg, I noticed these:
'I:computerSpaceLimit'
'I:floppySpaceLimit'


Do computers and floppies follow this? If so, are files not saved if they get too long (or if you have too many short ones)?
And is there a way to check the limit, like 'os.getComputerSpace();' or something?

That being said, if you can get computer space, is there a function to get used space, or free space (as you obviously don't need both to get the other)?
I know it's not 'os.getComputerSpace' since it's not on the wiki, but without editing the mod are there already pre-built functions for this?
Bomb Bloke #2
Posted 26 April 2014 - 04:55 AM
fs.getFreeSpace()
HometownPotato #3
Posted 26 April 2014 - 05:04 AM
Thank you
Edited on 26 April 2014 - 04:43 AM