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 |
||
-- |
-- nothing to do |
||
fp.closeFile() |
fp.closeFile() |
||
return true |
return true |