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

How large is a computer hard drive and floppy disk size? (in KB)

Started by brucelong, 24 September 2012 - 01:30 PM
brucelong #1
Posted 24 September 2012 - 03:30 PM
Does anyone know how large the hard drive and floppy disk size are?
MysticT #2
Posted 24 September 2012 - 04:22 PM
Look in the config.
The defaults are (in 1.42):
computerSpaceLimit=2097152
floppySpaceLimit=524288
wich is 2MB for computer and 512KB for disks.
CastleMan2000 #3
Posted 24 September 2012 - 04:49 PM
Wait, they actually have memory limits? How does that work?
MysticT #4
Posted 24 September 2012 - 04:59 PM
From 1.4 there's space limits for computers and disks. You can change them in the config, and even set them to 0 for infinite space.
The limit is per computer/disk, so you can always make more disks to store your files.
CastleMan2000 #5
Posted 24 September 2012 - 05:01 PM
Cool. I didn't know that. Not to derail, but is there any way to measure free space?
MysticT #6
Posted 24 September 2012 - 05:06 PM

fs.getFreeSpace(path)
:P/>/>