Truncate a file: Difference between revisions

Content added Content deleted
Line 632: Line 632:
if fp.status() then return false
if fp.status() then return false
if fp.getLength()=length then
if fp.getLength()=length then
-- noting to do
-- nothing to do
fp.closeFile()
fp.closeFile()
return true
return true