Posted 04 January 2015 - 09:11 PM
Running this code:
This prints out on my computer:
It is possible that I am being really stupid, but I think change should be negative not positive. This looks like space is 'created' when making a folder.
Also creating several directories ("a/b/c") should decrease the free space by 512*3, but only does it by 512.
local old = fs.getFreeSpace("/")
print("Original: ", old)
fs.makeDir("testing")
local new = fs.getFreeSpace("/")
print("New: ", new)
print("Change: ", new - old)
This prints out on my computer:
Original: 73078682
New: 73079194
Change: 512
It is possible that I am being really stupid, but I think change should be negative not positive. This looks like space is 'created' when making a folder.
Also creating several directories ("a/b/c") should decrease the free space by 512*3, but only does it by 512.
Edited on 04 January 2015 - 08:23 PM