"File to remove" DEBUG message was empty

You can't get the full file path of a file that no longer exists, obviously.
pull/1163/head
Frans de Jonge 10 years ago
parent 886a9d8f8f
commit 5faff6331f

@ -241,8 +241,8 @@ end
function FileManager:deleteFile(file)
local InfoMessage = require("ui/widget/infomessage")
local rm = util.execute("/bin/rm", "-r", util.realpath(file))
DEBUG("File to remove", util.realpath(file))
local rm = util.execute("/bin/rm", "-r", util.realpath(file))
DEBUG("rm status", rm)
if rm == 0 then
UIManager:show(InfoMessage:new{

Loading…
Cancel
Save