mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
"File to remove" DEBUG message was empty
You can't get the full file path of a file that no longer exists, obviously.
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user