Pastebin: L4EVuCy0
depth = 0
dsizeout = 0
di = {}
function dsize(pth)
depth = depth+1
dtemp[depth] = fs.list(pth)
for di[depth]=1, #dtemp[depth] do
if fs.isDir(dtemp[depth][di[depth]]) then
dsize(pth..dtmep[depth][di[depth]].."/")
else
dsizeout = dsizeout+fs.getSize(pth..dtemp[depth][di[depth]])
end
end
depth = depth-1
end
dsize("rom/")












