diff options
-rw-r--r-- | tinydns-model.lua | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tinydns-model.lua b/tinydns-model.lua index 602f416..2f40d98 100644 --- a/tinydns-model.lua +++ b/tinydns-model.lua @@ -309,9 +309,7 @@ function remove_file(self, path, userid) if not (fs.is_file(path)) then errtxt = "File doesn't exist!" elseif (validfilename(path)) then - local cmd, errors = io.popen( "/bin/rm " .. format.escapespecialcharacters(path), r ) - local cmdoutput = cmd:read("*a") - cmd:close() + os.remove(path) success = "File Deleted" else errtxt = "Not a valid filename!" |